From 177c55b2f3a7dcfdf5e5e22e1bc6d60f280848f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BF=97=E5=BC=BA?= <2997723368@qq.com> Date: Mon, 20 Mar 2023 14:45:04 +0800 Subject: [PATCH] update --- vue.config.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/vue.config.js b/vue.config.js index f0cc663..cfc097c 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,3 +1,12 @@ +/* + * @version: V1.0.0 + * @Date: 2023-03-20 11:20:34 + * @LastEditors: lzq + * @LastEditTime: 2023-03-20 14:44:20 + * @company: 睿展数据 + * @FilePath: \variant-form\vue.config.js + * @Descripttion: + */ 'use strict' const path = require('path') @@ -14,7 +23,7 @@ const procArgv = process.argv console.log('npm config: ', procArgv) */ let buildProdFlag = false -if (!!npmConfigArgv) { +if (npmConfigArgv) { npmConfigArgv.original.forEach(cItem => { if (cItem === 'build') { buildProdFlag = true @@ -31,7 +40,7 @@ if (IS_PROD && buildProdFlag) { module.exports = { - publicPath: './', + publicPath: '/variant-form', assetsDir: './', /* 开启vue运行时模板编译功能!! */