From bd153809fe73812e89520759ffd9e64b10e2a035 Mon Sep 17 00:00:00 2001 From: congzc Date: Wed, 26 Apr 2023 13:33:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8F=E8=A7=88=E5=99=A8=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/styles/index.scss | 5 ++++- src/views/model/editModel.vue | 2 +- vue.config.js | 22 ++++++++++++++-------- 3 files changed, 19 insertions(+), 10 deletions(-) diff --git a/src/styles/index.scss b/src/styles/index.scss index 19121e3..7252dd8 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -81,7 +81,7 @@ p { } -@media screen and (max-width: 280px) { +@media screen and (max-width: 320px) { /* 根据实际情况修改字体大小和元素宽度 */ html { // -webkit-text-size-adjust: none !important; @@ -94,6 +94,9 @@ p { display: none; } } + .listItemBr { + display: none; + } } } diff --git a/src/views/model/editModel.vue b/src/views/model/editModel.vue index e3805a7..1c7133f 100644 --- a/src/views/model/editModel.vue +++ b/src/views/model/editModel.vue @@ -158,7 +158,7 @@
{{ item.subTitle }}-{{ item.title }} -
+
{{ item.ageTypeStr }}
diff --git a/vue.config.js b/vue.config.js index f3669c9..6fdfd96 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,6 +1,6 @@ // const UglifyJsPlugin = require('uglifyjs-webpack-plugin') const path = require('path'); - +let timeStamp = new Date().getTime(); let externals = {} let cdn = { css: [], js: [] } @@ -12,8 +12,8 @@ if (isProduction) { * '包名' : '在项目中引入的名字' */ 'vue': 'Vue', + 'vant': 'vant', 'element-ui': 'ELEMENT', - 'xlsx': 'XLSX' } cdn = { css: [ @@ -22,27 +22,33 @@ if (isProduction) { js: [ // vue must at first! 'https://unpkg.com/vue@2.6.12/dist/vue.js', // vuejs + 'https://unpkg.com/vant@2.12/lib/vant.min.js', //vant 'https://unpkg.com/element-ui/lib/index.js', // element-ui js - 'https://cdn.jsdelivr.net/npm/xlsx@0.16.6/dist/xlsx.full.min.js' // xlsx ] } } module.exports = { configureWebpack: { + output: { // 输出重构 打包编译后的js文件名称,添加时间戳. + filename: `js/js[name].${timeStamp}.js`, + chunkFilename: `js/chunk.[id].${timeStamp}.js`, + }, resolve: { alias: { '@': path.resolve(__dirname, 'src') } }, externals, - + }, + css: { + extract: { // 打包后css文件名称添加时间戳 + filename: `css/[name].${timeStamp}.css`, + chunkFilename: `css/chunk.[id].${timeStamp}.css`, }, - css: { loaderOptions: { - css: { - // options here will be passed to css-loader - }, + css: { + }, // postcss: { // // options here will be passed to postcss-loader // plugins: [require('postcss-px2rem')({