|
@@ -40,10 +40,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
|