diff --git a/dist.zip b/dist.zip deleted file mode 100644 index 66cfc1e..0000000 Binary files a/dist.zip and /dev/null differ diff --git a/src/App.vue b/src/App.vue index 7be544c..18c9992 100644 --- a/src/App.vue +++ b/src/App.vue @@ -45,6 +45,7 @@ body, } body { /* background: #f5f5f5 !important; */ + color: rgba(0, 0, 0, 1); } body::-webkit-scrollbar { width: 0; diff --git a/src/components/LeftNav/LeftNav.vue b/src/components/LeftNav/LeftNav.vue index 1ea1d15..ca2b4f5 100644 --- a/src/components/LeftNav/LeftNav.vue +++ b/src/components/LeftNav/LeftNav.vue @@ -58,6 +58,7 @@ export default { methods: { changeQuery(code, url, item) { + console.log('code, url, item: ', code, url, item); let childCode = code; if (item && item.children && item.children.length) { childCode = item.children[0].code; @@ -67,6 +68,8 @@ export default { this.$router.push({ query: { code: childCode } }); this.$emit('chanegCode', code); this.childCode = code; + } else if (code === this.code) { + this.$emit('resetData'); } } else { if (url === '/') { diff --git a/src/views/CompanyProfile/CompanyProfile.vue b/src/views/CompanyProfile/CompanyProfile.vue index f397758..640bb99 100644 --- a/src/views/CompanyProfile/CompanyProfile.vue +++ b/src/views/CompanyProfile/CompanyProfile.vue @@ -3,7 +3,7 @@
- +
@@ -88,6 +88,9 @@ export default { chanegCode(code) { this.code = code; }, + resetData() { + this.getData(this.code); + }, }, }; diff --git a/src/views/NewPages/NewPages.vue b/src/views/NewPages/NewPages.vue index 01f6f33..0470e03 100644 --- a/src/views/NewPages/NewPages.vue +++ b/src/views/NewPages/NewPages.vue @@ -3,7 +3,7 @@
- +
@@ -208,10 +208,13 @@ export default { this.getContentData(code); }, getData(pageNum, code) { - console.log('pageNum: ', pageNum); this.pageNum = pageNum; this.getContentData(code); }, + resetData() { + this.pageNum = 1; + this.getContentData(this.code); + }, }, }; diff --git a/src/views/OtherPages/Department.vue b/src/views/OtherPages/Department.vue index a0f537e..564a95a 100644 --- a/src/views/OtherPages/Department.vue +++ b/src/views/OtherPages/Department.vue @@ -3,7 +3,7 @@
- +
@@ -706,6 +706,10 @@ export default { console.log('data: ', data); } catch (error) {} }, + resetData() { + this.pageNum = 1; + this.getContentData(); + }, getNumData(pageNum) { console.log('pageNum: ', pageNum); this.pageNum = pageNum; diff --git a/src/views/OtherPages/Information.vue b/src/views/OtherPages/Information.vue index 9bb25c2..003d6ff 100644 --- a/src/views/OtherPages/Information.vue +++ b/src/views/OtherPages/Information.vue @@ -3,7 +3,7 @@
- +
@@ -134,6 +134,9 @@ export default { this.content = data || {}; } catch (error) {} }, + resetData() { + this.getData(); + }, chanegCode(code) { this.code = code; }, diff --git a/src/views/OtherPages/NoticeNotice.vue b/src/views/OtherPages/NoticeNotice.vue index 701fc2c..4edd5e1 100644 --- a/src/views/OtherPages/NoticeNotice.vue +++ b/src/views/OtherPages/NoticeNotice.vue @@ -3,7 +3,7 @@
- +
@@ -108,6 +108,10 @@ export default { this.content = data; } catch (error) {} }, + resetData() { + this.pageNum = 1; + this.getContentData(); + }, // 获取文章信息 async getIntroContent() { try { diff --git a/src/views/OtherPages/PartyBuilding.vue b/src/views/OtherPages/PartyBuilding.vue index 354d341..4efa8e1 100644 --- a/src/views/OtherPages/PartyBuilding.vue +++ b/src/views/OtherPages/PartyBuilding.vue @@ -3,7 +3,7 @@
- +
@@ -112,6 +112,10 @@ export default { this.content = data; } catch (error) {} }, + resetData() { + this.pageNum = 1; + this.getContentData(); + }, // 获取文章信息 async getIntroContent() { try { diff --git a/src/views/OtherPages/PilePages.vue b/src/views/OtherPages/PilePages.vue index ef4c9b8..bbc1881 100644 --- a/src/views/OtherPages/PilePages.vue +++ b/src/views/OtherPages/PilePages.vue @@ -3,7 +3,7 @@
- +
@@ -97,6 +97,10 @@ export default { this.content = data; } catch (error) {} }, + resetData() { + this.pageNum = 1; + this.getContentData(); + }, // 获取文章信息 async getIntroContent() { try { diff --git a/src/views/OtherPages/SafeProduction.vue b/src/views/OtherPages/SafeProduction.vue index 6cc1a82..0436bd9 100644 --- a/src/views/OtherPages/SafeProduction.vue +++ b/src/views/OtherPages/SafeProduction.vue @@ -3,7 +3,7 @@
- +
@@ -111,6 +111,10 @@ export default { this.content = data; } catch (error) {} }, + resetData() { + this.pageNum = 1; + this.getContentData(); + }, // 获取文章信息 async getIntroContent() { try { diff --git a/src/views/OtherPages/System.vue b/src/views/OtherPages/System.vue index f31d551..cfb78f1 100644 --- a/src/views/OtherPages/System.vue +++ b/src/views/OtherPages/System.vue @@ -3,7 +3,7 @@
- +
@@ -102,6 +102,10 @@ export default { this.content = data || {}; } catch (error) {} }, + resetData() { + this.pageNum = 1; + this.getData(this.code); + }, chanegCode(code) { this.code = code; },