From 91f4ad2c83f54ed61ba4155fcafb4d7c9d8f350d Mon Sep 17 00:00:00 2001
From: sws <1141121512@qq.com>
Date: Mon, 30 Sep 2024 18:10:31 +0800
Subject: [PATCH] =?UTF-8?q?1.=E5=AF=BC=E5=85=A5=E6=96=B0=E5=A2=9E=E6=A8=A1?=
=?UTF-8?q?=E7=89=88=E5=BC=B9=E7=AA=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/common/template-import/index.vue | 14 ++++++++++----
src/store/modules/common.ts | 1 +
2 files changed, 11 insertions(+), 4 deletions(-)
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, // 基础数据配置参数
});
// 存储链接数据