Commit 2ba90028 by qiaoyanqi

修改静态资源引用

parent 161155c5
module.exports = { module.exports = {
// root: true, root: true,
// env: { env: {
// node: true node: true
// }, },
// 'extends': [ 'extends': [
// 'plugin:vue/essential', 'plugin:vue/essential',
// 'eslint:recommended' 'eslint:recommended'
// ], ],
// parserOptions: { parserOptions: {
// parser: 'babel-eslint' parser: 'babel-eslint'
// }, },
// rules: { rules: {
// 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
// 'no-unused-vars': process.env.NODE_ENV === 'production' ? 'warn' : 'off', 'no-unused-vars': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
// 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off' 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
// } }
} }
...@@ -407,7 +407,7 @@ ...@@ -407,7 +407,7 @@
initialFrameWidth:'100%', initialFrameWidth:'100%',
elementPathEnabled: false, elementPathEnabled: false,
wordCount: false, wordCount: false,
serverUrl: osConfig.baseUrl + "/ue", serverUrl: window.osConfig.baseUrl + "/ue",
// cookie_keys_tenant_id: SEDU.Util.tenant_key, // cookie_keys_tenant_id: SEDU.Util.tenant_key,
// cookie_keys_x_auth_token: nros.getToken() // cookie_keys_x_auth_token: nros.getToken()
}; };
...@@ -484,13 +484,13 @@ ...@@ -484,13 +484,13 @@
return require("../../assets/article/" + name); return require("../../assets/article/" + name);
}, },
insertEditorHtml(imgName){ insertEditorHtml(imgName){
let imgUrl = window.location.origin + this.getMaterialStyle(imgName); //let imgUrl = window.location.origin + this.getMaterialStyle(imgName);
let imgUrl = this.getMaterialStyle(imgName);
this.$refs['uEditor'].execCommand('focus'); this.$refs['uEditor'].execCommand('focus');
this.$refs['uEditor'].execCommand('insertimage', { this.$refs['uEditor'].execCommand('insertimage', {
src: imgUrl, src: imgUrl,
}); });
} }
}, },
created() { created() {
......
...@@ -55,7 +55,8 @@ var config = { ...@@ -55,7 +55,8 @@ var config = {
} }
}, },
extract: false extract: false
} },
publicPath: process.env.npm_package_name ? `output/${process.env.npm_package_name}/dist` : '/',
} }
lintOnSave: false, lintOnSave: false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment