diff --git a/epmet-oper-web/.env.development b/epmet-oper-web/.env.development index 2fc0402..5431a9b 100644 --- a/epmet-oper-web/.env.development +++ b/epmet-oper-web/.env.development @@ -3,4 +3,6 @@ NODE_ENV=development VUE_APP_API_SERVER = http://192.168.1.140/api # VUE_APP_API_SERVER = http://192.168.51.36:8080/api # VUE_APP_API_SERVER = https://epmet-dev.elinkservice.cn/api -VUE_APP_NODE_ENV=dev \ No newline at end of file +VUE_APP_NODE_ENV=dev +#项目根路径 +VUE_APP_PUBLIC_PATH=epmet-oper \ No newline at end of file diff --git a/epmet-oper-web/.env.production b/epmet-oper-web/.env.production index 7675639..6592f04 100644 --- a/epmet-oper-web/.env.production +++ b/epmet-oper-web/.env.production @@ -1,3 +1,4 @@ NODE_ENV=production VUE_APP_API_SERVER = https://epmet-cloud.elinkservice.cn/api -VUE_APP_NODE_ENV=prod \ No newline at end of file +VUE_APP_NODE_ENV=prod +VUE_APP_PUBLIC_PATH=epmet-oper \ No newline at end of file diff --git a/epmet-oper-web/.env.production.sit b/epmet-oper-web/.env.production.sit index e5b235f..6e5b4e9 100644 --- a/epmet-oper-web/.env.production.sit +++ b/epmet-oper-web/.env.production.sit @@ -1,4 +1,5 @@ NODE_ENV=production # VUE_APP_API_SERVER = http://118.190.150.119:41080/api VUE_APP_API_SERVER = http://192.168.1.140/api -VUE_APP_NODE_ENV=prod:sit \ No newline at end of file +VUE_APP_NODE_ENV=prod:sit +VUE_APP_PUBLIC_PATH=epmet-oper \ No newline at end of file diff --git a/epmet-oper-web/.env.production.uat b/epmet-oper-web/.env.production.uat index a6f3952..0825634 100644 --- a/epmet-oper-web/.env.production.uat +++ b/epmet-oper-web/.env.production.uat @@ -1,3 +1,4 @@ NODE_ENV=production VUE_APP_API_SERVER = https://epmet-dev.elinkservice.cn/api -VUE_APP_NODE_ENV=prod:uat \ No newline at end of file +VUE_APP_NODE_ENV=prod:uat +VUE_APP_PUBLIC_PATH=epmet-oper \ No newline at end of file diff --git a/epmet-oper-web/src/views/components/tinymce/index.vue b/epmet-oper-web/src/views/components/tinymce/index.vue index 2c232ce..c55245a 100644 --- a/epmet-oper-web/src/views/components/tinymce/index.vue +++ b/epmet-oper-web/src/views/components/tinymce/index.vue @@ -51,8 +51,8 @@ export default { selector: `#${this.tinymceId}`, language: 'zh_CN', menubar: 'false', - skin_url: '/tinymce/skins/ui/tduck', - content_css: '/tinymce/skins/content/tduck', + skin_url: '/' + process.env.VUE_APP_PUBLIC_PATH + '/tinymce/skins/ui/tduck', + content_css: '/' + process.env.VUE_APP_PUBLIC_PATH + '/tinymce/skins/content/tduck', cache_suffix: '?v=0.0.1', plugins, toolbar,