diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 5901a5c..9a15ee7 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -2,7 +2,7 @@
- Copyright © {{ year }} 预定商城管理平台 All Rights Reserved + Copyright © {{ year }} 云菜窖管理平台 All Rights Reserved
diff --git a/src/settings.js b/src/settings.js index 0446137..975803c 100644 --- a/src/settings.js +++ b/src/settings.js @@ -1,6 +1,6 @@ module.exports = { - title: '预定商城系统', + title: '云菜窖', /** * @type {boolean} true | false diff --git a/src/views/appletBanner/appletBannerAdd.vue b/src/views/appletBanner/appletBannerAdd.vue index 7009bf4..d802756 100644 --- a/src/views/appletBanner/appletBannerAdd.vue +++ b/src/views/appletBanner/appletBannerAdd.vue @@ -1,281 +1,291 @@ + } + \ No newline at end of file diff --git a/vue.config.js b/vue.config.js index 8d63002..4486a74 100644 --- a/vue.config.js +++ b/vue.config.js @@ -3,10 +3,10 @@ const path = require('path') const defaultSettings = require('./src/settings.js') function resolve(dir) { - return path.join(__dirname, dir) + return path.join(__dirname, dir) } -const name = defaultSettings.title || '汇融惠享' // page title +const name = defaultSettings.title || '云菜窖' // page title // 如果端口设置为80, // 使用管理员权限执行命令行。 @@ -17,127 +17,128 @@ const port = process.env.port || process.env.npm_config_port || 9531 // dev port // 所有配置项说明都可以在中找到https://cli.vuejs.org/config/ module.exports = { - /** - *如果计划在子路径下部署站点,则需要设置publicPath, - *例如GitHub页面。如果您计划将站点部署到https://foo.github.io/bar/, - *然后publicPath应设置为“/bar/”。 - *在大多数情况下,请使用“/”!!! - *详细信息:https://cli.vuejs.org/config/#publicpath - */ - publicPath: process.env.NODE_ENV === 'production' ? '/lpk/' : '/', - outputDir: 'yythmall-ui', - assetsDir: 'static', - lintOnSave: process.env.NODE_ENV === 'development', - productionSourceMap: false, - devServer: { - hot: true, // 自动保存 - host: '0.0.0.0', - port: port, - open: true, - overlay: { - warnings: false, - errors: true + /** + *如果计划在子路径下部署站点,则需要设置publicPath, + *例如GitHub页面。如果您计划将站点部署到https://foo.github.io/bar/, + *然后publicPath应设置为“/bar/”。 + *在大多数情况下,请使用“/”!!! + *详细信息:https://cli.vuejs.org/config/#publicpath + */ + publicPath: process.env.NODE_ENV === 'production' ? '/ycjui' : '/', + outputDir: 'yythmall-ui', + assetsDir: 'static', + lintOnSave: process.env.NODE_ENV === 'development', + productionSourceMap: false, + devServer: { + hot: true, // 自动保存 + host: '0.0.0.0', + port: port, + open: true, + overlay: { + warnings: false, + errors: true + }, + proxy: { + '/api': { // 匹配所有以 '/api'开头的请求路径 + // target: 'http://192.168.0.105:7211', + // target: process.env.VUE_APP_URL, // 代理目标的基础路径 + target: 'https://ordermall.yxtsoft.com/ycjapi', // 代理目标的基础路径 + changeOrigin: true, // 支持跨域 + pathRewrite: { // 重写路径: 去掉路径中开头的'/api' + '^/api': '' + } + }, + '/upload': { // 匹配所有以 '/api'开头的请求路径 + // target: 'http://192.168.0.105:7211', + // target: process.env.VUE_APP_URL, // 代理目标的基础路径 + target: 'https://ordermall.yxtsoft.com/ycjapi', // 代理目标的基础路径 + changeOrigin: true, // 支持跨域 + pathRewrite: { // 重写路径: 去掉路径中开头的'/api' + '^/upload': '' + } + } + }, + disableHostCheck: true }, - proxy: { - '/api': { // 匹配所有以 '/api'开头的请求路径 - // target: 'http://192.168.1.109:8111', - target: process.env.VUE_APP_URL, // 代理目标的基础路径 - // target: 'http://jianguan.yyundong.com/shgfapi', // 代理目标的基础路径 - changeOrigin: true, // 支持跨域 - pathRewrite: { // 重写路径: 去掉路径中开头的'/api' - '^/api': '' - } - }, - '/upload': { // 匹配所有以 '/api'开头的请求路径 - // target: 'http://120.46.131.15:8111', - target: process.env.VUE_APP_URL, // 代理目标的基础路径 - changeOrigin: true, // 支持跨域 - pathRewrite: { // 重写路径: 去掉路径中开头的'/api' - '^/upload': '' + configureWebpack: { + // 在webpack的name字段中提供应用程序的标题,以便 + // 它可以在索引.html插入正确的标题。 + name: name, + resolve: { + alias: { + '@': resolve('src'), + '@C': resolve('src/components') + } } - } }, - disableHostCheck: true - }, - configureWebpack: { - // 在webpack的name字段中提供应用程序的标题,以便 - // 它可以在索引.html插入正确的标题。 - name: name, - resolve: { - alias: { - '@': resolve('src'), - '@C': resolve('src/components') - } - } - }, - chainWebpack(config) { - // 它可以提高第一屏的速度,建议打开预加载 - config.plugin('preload').tap(() => [{ - rel: 'preload', - // 忽略 runtime.js - // https://github.com/vuejs/vue-cli/blob/dev/packages/@vue/cli-service/lib/config/app.js#L171 - fileBlacklist: [/\.map$/, /hot-update\.js$/, /runtime\..*\.js$/], - include: 'initial' - }]) - - // 当有很多页面时,会导致太多无意义的请求 - config.plugins.delete('prefetch') + chainWebpack(config) { + // 它可以提高第一屏的速度,建议打开预加载 + config.plugin('preload').tap(() => [{ + rel: 'preload', + // 忽略 runtime.js + // https://github.com/vuejs/vue-cli/blob/dev/packages/@vue/cli-service/lib/config/app.js#L171 + fileBlacklist: [/\.map$/, /hot-update\.js$/, /runtime\..*\.js$/], + include: 'initial' + }]) - // set svg-sprite-loader 设置 svg精灵加载程序 - config.module - .rule('svg') - .exclude.add(resolve('src/icons')) - .end() - config.module - .rule('icons') - .test(/\.svg$/) - .include.add(resolve('src/icons')) - .end() - .use('svg-sprite-loader') - .loader('svg-sprite-loader') - .options({ - symbolId: 'icon-[name]' - }) - .end() + // 当有很多页面时,会导致太多无意义的请求 + config.plugins.delete('prefetch') - config - .when(process.env.NODE_ENV !== 'development', - config => { - config - .plugin('ScriptExtHtmlWebpackPlugin') - .after('html') - .use('script-ext-html-webpack-plugin', [{ - // `runtime` must same as runtimeChunk name. default is `runtime` - inline: /runtime\..*\.js$/ - }]) + // set svg-sprite-loader 设置 svg精灵加载程序 + config.module + .rule('svg') + .exclude.add(resolve('src/icons')) .end() - config - .optimization.splitChunks({ - chunks: 'all', - cacheGroups: { - libs: { - name: 'chunk-libs', - test: /[\\/]node_modules[\\/]/, - priority: 10, - chunks: 'initial' // only package third parties that are initially dependent - }, - elementUI: { - name: 'chunk-elementUI', // split elementUI into a single package - priority: 20, // the weight needs to be larger than libs and app or it will be packaged into libs or app - test: /[\\/]node_modules[\\/]_?element-ui(.*)/ // in order to adapt to cnpm - }, - commons: { - name: 'chunk-commons', - test: resolve('src/components'), // can customize your rules - minChunks: 3, // minimum common number - priority: 5, - reuseExistingChunk: true - } - } - }) - // https:// webpack.js.org/configuration/optimization/#optimizationruntimechunk - config.optimization.runtimeChunk('single') - } - ) - } -} + config.module + .rule('icons') + .test(/\.svg$/) + .include.add(resolve('src/icons')) + .end() + .use('svg-sprite-loader') + .loader('svg-sprite-loader') + .options({ + symbolId: 'icon-[name]' + }) + .end() + + config + .when(process.env.NODE_ENV !== 'development', + config => { + config + .plugin('ScriptExtHtmlWebpackPlugin') + .after('html') + .use('script-ext-html-webpack-plugin', [{ + // `runtime` must same as runtimeChunk name. default is `runtime` + inline: /runtime\..*\.js$/ + }]) + .end() + config + .optimization.splitChunks({ + chunks: 'all', + cacheGroups: { + libs: { + name: 'chunk-libs', + test: /[\\/]node_modules[\\/]/, + priority: 10, + chunks: 'initial' // only package third parties that are initially dependent + }, + elementUI: { + name: 'chunk-elementUI', // split elementUI into a single package + priority: 20, // the weight needs to be larger than libs and app or it will be packaged into libs or app + test: /[\\/]node_modules[\\/]_?element-ui(.*)/ // in order to adapt to cnpm + }, + commons: { + name: 'chunk-commons', + test: resolve('src/components'), // can customize your rules + minChunks: 3, // minimum common number + priority: 5, + reuseExistingChunk: true + } + } + }) + // https:// webpack.js.org/configuration/optimization/#optimizationruntimechunk + config.optimization.runtimeChunk('single') + } + ) + } +} \ No newline at end of file