From b23fec0d1c46a72e9be33f6e949a55d0dd7d5bca Mon Sep 17 00:00:00 2001
From: feige <feige@qq.com>
Date: 星期四, 19 十月 2023 11:33:37 +0800
Subject: [PATCH] 修改了vue_app_base_other_api 为47.93.189.255:8085 clean/cleanInfo.vue 里面判断ip修改为域名www.bendudu.com 另外,在process.env.VUE_APP_BASE_OTHER_API加了preview
---
ruoyi-ui/.env.production | 2 +-
ruoyi-ui/.env.development | 2 +-
ruoyi-ui/src/views/clean/cleanInfo.vue | 11 +++++++++--
3 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/ruoyi-ui/.env.development b/ruoyi-ui/.env.development
index ed59561..af73f7e 100644
--- a/ruoyi-ui/.env.development
+++ b/ruoyi-ui/.env.development
@@ -7,6 +7,6 @@
# 鑻ヤ緷绠$悊绯荤粺/寮�鍙戠幆澧�
VUE_APP_BASE_API = '/dev-api'
VUE_APP_BASE_TRUE_API = 'https://47.93.189.255:8080/'
-VUE_APP_BASE_OTHER_API = 'http://47.93.189.255:8083/'
+VUE_APP_BASE_OTHER_API = 'https://www.bendudu.com:8085/'
# 璺敱鎳掑姞杞�
VUE_CLI_BABEL_TRANSPILE_MODULES = true
diff --git a/ruoyi-ui/.env.production b/ruoyi-ui/.env.production
index d3a75ec..76a00c0 100644
--- a/ruoyi-ui/.env.production
+++ b/ruoyi-ui/.env.production
@@ -7,4 +7,4 @@
# 鑻ヤ緷绠$悊绯荤粺/鐢熶骇鐜
VUE_APP_BASE_API = '/prod-api'
VUE_APP_BASE_TRUE_API = 'https://47.93.189.255:8080/'
-VUE_APP_BASE_OTHER_API = 'http://47.93.189.255:8083/'
+VUE_APP_BASE_OTHER_API = 'https://www.bendudu.com:8085/'
diff --git a/ruoyi-ui/src/views/clean/cleanInfo.vue b/ruoyi-ui/src/views/clean/cleanInfo.vue
index 5545b6f..4616848 100644
--- a/ruoyi-ui/src/views/clean/cleanInfo.vue
+++ b/ruoyi-ui/src/views/clean/cleanInfo.vue
@@ -393,9 +393,16 @@
},
handleFileCardPreview(file){
this.dialogFileUrl = file.url;
+ // alert(file.url)
+ // this.dialogFileUrl = 'https://www.bendudu.com:8080/profile/upload/2023/10/18/20231018214647A011.doc'
+ // this.dialogFileUrl = 'https://47.93.189.255:8080/profile/upload/2023/03/19/test7_20230319222030A007.jpg'
+ if(this.dialogFileUrl.includes("47.93.189.255")==true)
+ this.dialogFileUrl = this.dialogFileUrl.replace("47.93.189.255","www.bendudu.com")
+ //alert(this.dialogFileUrl)
const Base64 = require('js-base64').Base64
- this.desurl = process.env.VUE_APP_BASE_OTHER_API+'onlinePreview?url='+encodeURIComponent(Base64.encode(this.dialogFileUrl));
- myWindow=window.open(this.desurl,'','width=1200,height=800,top=150,left=300');
+
+ this.desurl = process.env.VUE_APP_BASE_OTHER_API+"preview/"+'onlinePreview?url='+encodeURIComponent(Base64.encode(this.dialogFileUrl));
+ let myWindow=window.open(this.desurl,'','width=1200,height=800,top=150,left=300');
},
//鍒犳枃浠�
handleRemoveFile(file,) {
--
Gitblit v1.9.1