Commit 2ba90028 by qiaoyanqi

修改静态资源引用

parent 161155c5
module.exports = {
// root: true,
// env: {
// node: true
// },
// 'extends': [
// 'plugin:vue/essential',
// 'eslint:recommended'
// ],
// parserOptions: {
// parser: 'babel-eslint'
// },
// rules: {
// 'no-console': 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'
// }
root: true,
env: {
node: true
},
'extends': [
'plugin:vue/essential',
'eslint:recommended'
],
parserOptions: {
parser: 'babel-eslint'
},
rules: {
'no-console': 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'
}
}
......@@ -407,7 +407,7 @@
initialFrameWidth:'100%',
elementPathEnabled: false,
wordCount: false,
serverUrl: osConfig.baseUrl + "/ue",
serverUrl: window.osConfig.baseUrl + "/ue",
// cookie_keys_tenant_id: SEDU.Util.tenant_key,
// cookie_keys_x_auth_token: nros.getToken()
};
......@@ -484,13 +484,13 @@
return require("../../assets/article/" + name);
},
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('insertimage', {
src: imgUrl,
});
}
},
created() {
......
......@@ -55,7 +55,8 @@ var config = {
}
},
extract: false
}
},
publicPath: process.env.npm_package_name ? `output/${process.env.npm_package_name}/dist` : '/',
}
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