From 966e22cf3bb23752de688903be7efd9501c82d07 Mon Sep 17 00:00:00 2001 From: ruanqi Date: Tue, 22 Oct 2024 11:09:36 +0800 Subject: [PATCH] plm BMM --- .../com_bm_demoSlot.vue | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_demoSlot.vue b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_demoSlot.vue index 1793f27..0c8b70b 100644 --- a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_demoSlot.vue +++ b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_demoSlot.vue @@ -230,25 +230,26 @@ }, openNewPage(url){ // window.open(this.$store.state.user.bmPicUrl +url); + let urlIn=url.replaceAll('\\','/') if(url==null||url===''){ this.$alert("链接没有数据!", '错误', { confirmButtonText: '确定' }) return false; } - window.open(url); - // let data={ - // url:url - // } - // checkUrl(data).then(({data}) => { - // if (data && data.code === 0) { - // window.open(data.url); - // } else { - // this.$alert(data.msg, '错误', { - // confirmButtonText: '确定' - // }) - // } - // }); + // window.open(url); + let data={ + url:urlIn + } + checkUrl(data).then(({data}) => { + if (data && data.code === 0) { + window.open(data.url); + } else { + this.$alert(data.msg, '错误', { + confirmButtonText: '确定' + }) + } + }); }, // 获取流程的配置权限