diff --git a/src/components/common/template-import/index.vue b/src/components/common/template-import/index.vue index d7222596..db329095 100644 --- a/src/components/common/template-import/index.vue +++ b/src/components/common/template-import/index.vue @@ -40,9 +40,11 @@ 我已购买 - - - 更多diy模版下载 + +
+ + 更多diy模版下载 +
@@ -126,6 +128,8 @@ import type { UploadFile } from 'element-plus'; import { annex_size_to_unit } from '@/utils'; import DiyAPI from '@/api/diy'; +import { commonStore } from '@/store'; +const common_store = commonStore(); const app = getCurrentInstance(); /** * @description: 模版导入 @@ -142,7 +146,9 @@ const props = defineProps({ }); const dialogVisible = defineModel({ type: Boolean, default: false }); const temp_active = ref('1'); - +const more_link = computed(() => { + return common_store.common.config.store_diy_url || ''; +}); //导入 const exts_text = ref('.zip'); const upload_file = ref({ diff --git a/src/store/modules/common.ts b/src/store/modules/common.ts index 50f7fa18..4e8bed24 100644 --- a/src/store/modules/common.ts +++ b/src/store/modules/common.ts @@ -21,6 +21,7 @@ export const commonStore = defineStore('common', () => { common_tianditu_map_ak: '', currency_symbol: '', attachment_host: '', + store_diy_url: '', } as any, // 基础数据配置参数 }); // 存储链接数据