全部修改架构
This commit is contained in:
5
vue.config.js
Normal file
5
vue.config.js
Normal file
@@ -0,0 +1,5 @@
|
||||
const { defineConfig } = require('@vue/cli-service')
|
||||
module.exports = defineConfig({
|
||||
publicPath: process.env.NODE_ENV === 'production' ? './' : '/', // 关键点:生产环境用相对路径
|
||||
transpileDependencies: true
|
||||
})
|
||||
Reference in New Issue
Block a user