mxd 3 年之前
父節點
當前提交
dcb2f328b0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      magic-editor/src/console/src/components/magic-editor.vue

+ 1 - 1
magic-editor/src/console/src/components/magic-editor.vue

@@ -101,7 +101,7 @@ export default {
   beforeMount() {
     contants.BASE_URL = this.config.baseURL || ''
     contants.SERVER_URL = this.config.serverURL || ''
-    let link = `${location.protocol}//${location.host}${location.pathname}`;
+    let link = `${location.protocol}//${location.host}${location.pathname}`.replace('/index.html', '');
     if (contants.BASE_URL.startsWith('http')) { // http开头
       link = contants.BASE_URL
     } else if (contants.BASE_URL.startsWith('/')) { // / 开头的