From 948a8b5fba4baf0a19493ae6d7b8a1dee0d4101a Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期二, 14 五月 2024 17:01:19 +0800 Subject: [PATCH] 修改action实现机制,配置文档 --- Source/ProjectWeb/src/components/dynamic-components/dynamic-custom.vue | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Source/ProjectWeb/src/components/dynamic-components/dynamic-custom.vue b/Source/ProjectWeb/src/components/dynamic-components/dynamic-custom.vue index 44dbf0e..360191b 100644 --- a/Source/ProjectWeb/src/components/dynamic-components/dynamic-custom.vue +++ b/Source/ProjectWeb/src/components/dynamic-components/dynamic-custom.vue @@ -112,11 +112,12 @@ } else { this.ComponentUrl = this.customClass; // 涓嶅瓨鍦� '?' 鏁存潯璺緞灏辨槸 parts } - if(validatenull(this.ComponentUrl) || ['UI', 'ui'].includes(this.ComponentUrl)){ - this.ComponentUrl='base/UIContentViewerInDialog'; - }else { - this.ComponentUrl='custom-ui/'+this.ComponentUrl; + if(validatenull(this.ComponentUrl) || ['ui', 'UI', 'base','bs'].includes(this.ComponentUrl)){ + this.ComponentUrl='views/base/UIContentViewerInDialog'; + }else if(this.ComponentUrl.indexOf('views/')===-1){ + this.ComponentUrl='views/custom-ui/'+this.ComponentUrl; } + if (this.ComponentUrl=='base/UIContentViewerInDialog' && (!urlParams.type || !urlParams.context)) { this.isError = true; return; @@ -133,7 +134,7 @@ methods: { loadCompoent(){ // 鍔ㄦ�佸鍏ョ粍浠� - import(`@/views/${this.ComponentUrl}.vue`).then((module) => { + import(`@/${this.ComponentUrl}.vue`).then((module) => { // 鎴愬姛瀵煎叆鍚庯紝灏嗙粍浠舵敞鍐屽埌Vue瀹炰緥涓� this.currentComponent = module.default; }).catch((error) => { -- Gitblit v1.9.3