diff --git a/package-lock.json b/package-lock.json index 0b55790..9920a70 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8365,6 +8365,11 @@ "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=" }, + "jsencrypt": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/jsencrypt/-/jsencrypt-3.3.2.tgz", + "integrity": "sha512-arQR1R1ESGdAxY7ZheWr12wCaF2yF47v5qpB76TtV64H1pyGudk9Hvw8Y9tb/FiTIaaTRUyaSnm5T/Y53Ghm/A==" + }, "jsesc": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", diff --git a/package.json b/package.json index 93a255d..5f59fc2 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "html2canvas": "^1.3.2", "jquery": "^3.7.1", "js-cookie": "^2.2.1", + "jsencrypt": "^3.3.2", "jspdf": "^2.4.0", "lru-cache": "^7.14.1", "mavon-editor": "^2.9.1", diff --git a/src/components/breadcrumb/index.vue b/src/components/breadcrumb/index.vue index d03e350..5f80a4b 100644 --- a/src/components/breadcrumb/index.vue +++ b/src/components/breadcrumb/index.vue @@ -49,7 +49,7 @@ export default { methods: { // 获取文章详情 getInfo () { - this.$route.query.articleId && this.$post(`${this.api.queryArticleColumnParent}?articleId=${this.$route.query.articleId}`).then(({ data }) => { + this.$route.query.articleId && this.$post(this.api.queryArticleColumnParent, Util.rsa(this.$route.query.articleId)).then(({ data }) => { this.columns = data }).catch(err => { }) }, diff --git a/src/components/rightColumns/index.vue b/src/components/rightColumns/index.vue index 88e44cb..08e12ac 100644 --- a/src/components/rightColumns/index.vue +++ b/src/components/rightColumns/index.vue @@ -71,36 +71,36 @@ export default { methods: { // 资讯 getColumn () { - this.$post(this.api.listWithTreeMenuVisible, { + this.$post(this.api.listWithTreeMenuVisible, Util.rsa({ siteId: this.site, columnName: '', templateId: '', typeId: '', isSort: 1 - }).then(({ data }) => { + })).then(({ data }) => { this.columns = data this.$parent.getInfo && this.$parent.getInfo() }).catch(err => { }) - this.$post(`${this.api.hotContent}?siteId=${this.site}`).then(({ data }) => { + this.$post(this.api.hotContent, Util.rsa(this.site)).then(({ data }) => { this.hots = Util.removeTag(data) }).catch(err => { }) if (this.site == 2) { - this.$post(this.api.newlyPublishedArticles, { + this.$post(this.api.newlyPublishedArticles, Util.rsa({ siteId: this.site, columnIds: [411, 412, 413], pageNum: 1, pageSize: 8, - }).then(({ data }) => { + })).then(({ data }) => { this.site2News = Util.removeTag(data.records); }).catch((res) => { }); } else { - this.$post(this.api.newlyPublishedArticles, { + this.$post(this.api.newlyPublishedArticles, Util.rsa({ pageNum: 1, pageSize: 5, siteId: this.site - }).then(({ data }) => { + })).then(({ data }) => { this.news = Util.removeTag(data.records) }).catch(res => { }) } diff --git a/src/layouts/footer/index.vue b/src/layouts/footer/index.vue index 9212c70..5308ea7 100644 --- a/src/layouts/footer/index.vue +++ b/src/layouts/footer/index.vue @@ -59,6 +59,7 @@