Ver código fonte

update template-list

linweizeng 3 anos atrás
pai
commit
1317bee808

+ 3 - 0
src/views/platform/data/dataTemplate/template-list.vue

@@ -43,10 +43,13 @@ export default {
         }
         }
         this.$nextTick(() => {
         this.$nextTick(() => {
           const defaultUrl = this.$route.meta.defaultUrl
           const defaultUrl = this.$route.meta.defaultUrl
+          const isDashboard = this.$route.name
           if (this.$utils.isNotEmpty(defaultUrl)) {
           if (this.$utils.isNotEmpty(defaultUrl)) {
             // 判断地址是否正确
             // 判断地址是否正确
             const url = defaultUrl.split('/')
             const url = defaultUrl.split('/')
             this.dataTemplateId = url[url.length - 1]
             this.dataTemplateId = url[url.length - 1]
+          } else if (isDashboard === 'dashboard') {
+            this.dataTemplateId = this.templateId
           } else {
           } else {
             const params = this.$route.params
             const params = this.$route.params
             this.dataTemplateId = params.id
             this.dataTemplateId = params.id