瀏覽代碼

新闻同步官网图片地址自动转换BUG修复

songxy 1 年之前
父節點
當前提交
a700eafeab
共有 3 個文件被更改,包括 3 次插入2 次删除
  1. 1 1
      client/.env.dev
  2. 1 0
      client/src/components/Tinymce/Tinymce.vue
  3. 1 1
      client/vite.config.ts

+ 1 - 1
client/.env.dev

@@ -6,7 +6,7 @@ VITE_DEV=false
 # 请求路径
 # VITE_BASE_URL='http://10.10.9.113:48080'
 VITE_BASE_URL='http://10.10.10.7:18080'
-# VITE_BASE_URL='http://oa.zjugis.com:28080'
+# VITE_BASE_URL='https://oa.zjugis.com:28080'
 
 # VITE_BASE_URL='http://10.10.9.168:48080'
 

+ 1 - 0
client/src/components/Tinymce/Tinymce.vue

@@ -148,6 +148,7 @@ const initOptions = computed(() => {
     object_resizing: false,
     auto_focus: true,
     paste_data_images: true,
+    convert_urls: false,
     skin: 'oxide',
     skin_url: '/resource/tinymce/skins/ui/oxide',
     content_css: '/resource/tinymce/skins/ui/oxide/content.min.css',

+ 1 - 1
client/vite.config.ts

@@ -33,7 +33,7 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
       // 本地跨域代理. 目前注释的原因:暂时没有用途,server 端已经支持跨域
       proxy: {
         ['/widewebApi']: {
-          target: 'http://wideweb.niceued.com',
+          target: 'https://www.zjugis.com',
           ws: false,
           changeOrigin: true,
           rewrite: (path) => path.replace(new RegExp(`^/widewebApi`), ''),