-
+
@@ -123,17 +123,17 @@ export default {
},
created() {
this.code = this.$route.query.code;
- console.log('this.$route.query: ', this.$route.query);
this.getDetault(this.code);
if (this.$route.query.introId) {
console.log('this.$route.query.introId: ', this.$route.query.introId);
this.introId = this.$route.query.introId;
this.getIntroContent();
- }
- if (this.code.length === 6 && (this.code === '060101' || this.code === '060503')) {
- this.getContentData(this.code);
} else {
- this.getData(this.code);
+ if (this.code.length === 6 && (this.code === '060101' || this.code === '060503')) {
+ this.getData(this.code);
+ } else {
+ this.getContentData(this.code);
+ }
}
},
methods: {
diff --git a/src/views/OtherPages/NoticeNotice.vue b/src/views/OtherPages/NoticeNotice.vue
index 061cb6a..485782d 100644
--- a/src/views/OtherPages/NoticeNotice.vue
+++ b/src/views/OtherPages/NoticeNotice.vue
@@ -82,8 +82,9 @@ export default {
if (this.$route.query.introId) {
this.introId = this.$route.query.introId;
this.getIntroContent();
+ } else {
+ this.getContentData();
}
- this.getContentData();
},
methods: {
...mapActions('home', ['getContent', 'getDetail']),
diff --git a/src/views/OtherPages/PartyBuilding.vue b/src/views/OtherPages/PartyBuilding.vue
index 944fc9b..dab6cf4 100644
--- a/src/views/OtherPages/PartyBuilding.vue
+++ b/src/views/OtherPages/PartyBuilding.vue
@@ -86,8 +86,9 @@ export default {
if (this.$route.query.introId) {
this.introId = this.$route.query.introId;
this.getIntroContent();
+ } else {
+ this.getContentData();
}
- this.getContentData();
},
methods: {
...mapActions('home', ['getContent', 'getDetail']),
diff --git a/src/views/OtherPages/PilePages.vue b/src/views/OtherPages/PilePages.vue
index de40405..aede800 100644
--- a/src/views/OtherPages/PilePages.vue
+++ b/src/views/OtherPages/PilePages.vue
@@ -70,8 +70,9 @@ export default {
if (this.$route.query.introId) {
this.introId = this.$route.query.introId;
this.getIntroContent();
+ } else {
+ this.getContentData();
}
- this.getContentData();
},
methods: {
...mapActions('home', ['getContent', 'getDetail']),
diff --git a/src/views/OtherPages/SafeProduction.vue b/src/views/OtherPages/SafeProduction.vue
index 7431cbd..93a7367 100644
--- a/src/views/OtherPages/SafeProduction.vue
+++ b/src/views/OtherPages/SafeProduction.vue
@@ -82,8 +82,9 @@ export default {
if (this.$route.query.introId) {
this.introId = this.$route.query.introId;
this.getIntroContent();
+ } else {
+ this.getContentData();
}
- this.getContentData();
},
methods: {
...mapActions('home', ['getContent', 'getDetail']),
diff --git a/src/views/OtherPages/Search.vue b/src/views/OtherPages/Search.vue
index 39fe1db..1eb4816 100644
--- a/src/views/OtherPages/Search.vue
+++ b/src/views/OtherPages/Search.vue
@@ -93,8 +93,9 @@ export default {
if (this.$route.query.introId) {
this.introId = this.$route.query.introId;
this.getIntroContent();
+ } else {
+ this.getSearchData();
}
- this.getSearchData();
},
methods: {
...mapActions('home', ['getContent', 'getDetail']),
diff --git a/src/views/OtherPages/System.vue b/src/views/OtherPages/System.vue
index 0563b93..dbd0b8c 100644
--- a/src/views/OtherPages/System.vue
+++ b/src/views/OtherPages/System.vue
@@ -8,6 +8,7 @@
+
@@ -24,9 +25,10 @@ import LeftNav from '@/components/LeftNav/LeftNav.vue';
import Location from '@/components/Location/Location.vue';
import ListPage from '@/components/ListPage/ListPage.vue';
import Relevant from '@/components/RichText/Relevant.vue';
+import RichText from '@/components/RichText/RichText.vue';
export default {
- components: { LeftNav, ListPage, Relevant, Location },
+ components: { LeftNav, ListPage, Relevant, Location, RichText },
data() {
return {
code: '0801',
@@ -92,8 +94,9 @@ export default {
if (this.$route.query.introId) {
this.introId = this.$route.query.introId;
this.getIntroContent();
+ } else {
+ this.getContentData();
}
- this.getContentData();
},
methods: {
...mapActions('home', ['getContent', 'getDetail']),
@@ -145,6 +148,7 @@ export default {
};
const data = await this.getDetail(param);
this.introContent = data || {};
+ console.log('this.introContent: ', this.introContent);
} catch (error) {
console.error('error: ', error);
}