fix: 修改非 window 环境打包路径报错的问题

This commit is contained in:
奔跑的面条 2022-09-15 11:48:39 +08:00
parent 9c9ab6c734
commit 82a55b75b8
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
import image from '@/assets/images/chart/charts/Point.png' import image from '@/assets/images/chart/charts/point.png'
import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d' import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d'
import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d' import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d'

View File

@ -17,11 +17,11 @@ export default defineConfig({
alias: [ alias: [
{ {
find: /\/#\//, find: /\/#\//,
replacement: pathResolve('types') + '/' replacement: pathResolve('types')
}, },
{ {
find: '@', find: '@',
replacement: pathResolve('src') + '/' replacement: pathResolve('src')
} }
], ],
dedupe: ['vue'] dedupe: ['vue']