fix: 后端接口改为java,联调接口修改。
This commit is contained in:
@@ -36,6 +36,10 @@ const config = {
|
||||
outputRoot: 'dist',
|
||||
plugins: ['@tarojs/plugin-html'],
|
||||
defineConstants: {
|
||||
// Vue 3 特性标志
|
||||
__VUE_OPTIONS_API__: JSON.stringify(true),
|
||||
__VUE_PROD_DEVTOOLS__: JSON.stringify(false),
|
||||
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: JSON.stringify(false)
|
||||
},
|
||||
copy: {
|
||||
patterns: [
|
||||
@@ -142,6 +146,39 @@ const config = {
|
||||
chain.plugin('unplugin-vue-components').use(Components({
|
||||
resolvers: [NutUIResolver()]
|
||||
}))
|
||||
chain.plugin('unplugin-auto-import').use(
|
||||
AutoImport({
|
||||
imports: ['vue'],
|
||||
dts: 'types/auto-imports.d.ts',
|
||||
dirs: ['src/utils', 'src/store'],
|
||||
vueTemplate: true
|
||||
})
|
||||
)
|
||||
},
|
||||
devServer: {
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'https://api.yuceyun.cn',
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
'^/api': ''
|
||||
}
|
||||
},
|
||||
'/auth': {
|
||||
target: 'https://api.yuceyun.cn',
|
||||
changeOrigin: true
|
||||
},
|
||||
'/resource': {
|
||||
target: 'https://api.yuceyun.cn',
|
||||
changeOrigin: true
|
||||
}
|
||||
},
|
||||
client: {
|
||||
overlay: {
|
||||
errors: true,
|
||||
warnings: false
|
||||
}
|
||||
}
|
||||
},
|
||||
publicPath: '/',
|
||||
staticDirectory: 'static',
|
||||
|
||||
Reference in New Issue
Block a user