From 562ce63382d15a5227eb0fae29027d5f73d65708 Mon Sep 17 00:00:00 2001 From: xiangheng <11675084@qq.com> Date: Sat, 29 Jun 2024 00:45:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=94=9F=E6=88=90=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/components/upload/index.vue | 6 +- admin/src/views/monitor_client/index.vue | 77 ++++++++++--------- .../tpl_utils/templates/vue/index.vue.tpl | 2 +- 3 files changed, 44 insertions(+), 41 deletions(-) diff --git a/admin/src/components/upload/index.vue b/admin/src/components/upload/index.vue index ea90591..a2caee3 100644 --- a/admin/src/components/upload/index.vue +++ b/admin/src/components/upload/index.vue @@ -85,8 +85,10 @@ export default defineComponent({ const userStore = useUserStore() const uploadRefs = shallowRef>() let action = '' - if (props.url) { - if (props.url.startsWith('http')) { + if (props.url && typeof props.url === 'string') { + console.log('props.url', props.url) + + if (props.url.indexOf('http') === 0) { action = props.url } else { action = `${config.baseUrl}${config.urlPrefix}${props.url}` diff --git a/admin/src/views/monitor_client/index.vue b/admin/src/views/monitor_client/index.vue index 3d6d63a..63157d2 100644 --- a/admin/src/views/monitor_client/index.vue +++ b/admin/src/views/monitor_client/index.vue @@ -1,39 +1,42 @@