diff --git a/public/dev_api_config.js b/public/dev_api_config.js new file mode 100644 index 0000000..74b7ac0 --- /dev/null +++ b/public/dev_api_config.js @@ -0,0 +1,4 @@ +window._CONFIG = {} +window._CONFIG.documentUrl = 'http://10.0.1.19:8184/laws-sinotruk/onlyoffice/downLoadFile?path=' +window._CONFIG.callbackUrl = 'http://10.0.1.19:8184/' +window._CONFIG.configUrl = 'http://10.0.1.19:8082/' diff --git a/public/index.html b/public/index.html index 5866ee6..a78559f 100644 --- a/public/index.html +++ b/public/index.html @@ -6,41 +6,16 @@ <%= htmlWebpackPlugin.options.title %> + + <% if (process.env.NODE_ENV === 'development' ) { %> - <% if (process.env.NODE_ENV === 'development' ) { %> - - - + + <% } %> + <% if (process.env.NODE_ENV === 'production' ) { %> - - <% } %> - - <% if (process.env.NODE_ENV === 'development' ) { %> - - <% } %> - <% if (process.env.NODE_ENV === 'production' ) { %> - + <% } %> diff --git a/public/prod_api_config.js b/public/prod_api_config.js new file mode 100644 index 0000000..fd6b7a6 --- /dev/null +++ b/public/prod_api_config.js @@ -0,0 +1,4 @@ +window._CONFIG = {} +window._CONFIG.documentUrl = 'http://laws-sinotruk-server-kmc2c.yf-grp:8080/laws-sinotruk/onlyoffice/downLoadFile?path=' +window._CONFIG.callbackUrl = 'http://laws-sinotruk-server-kmc2c.yf-grp:8080/' +window._CONFIG.configUrl = 'http://onlyofficeplugins.sinotruk.com/' diff --git a/vue.config.js b/vue.config.js index 1461d94..154aa46 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,4 +1,6 @@ module.exports = { + publicPath: '/', + outputDir:"onlyofficeui", //设置打包后的项目目录名称 css: { loaderOptions: { less: { @@ -33,5 +35,5 @@ module.exports = { } } } - }, + } }