feat(ui): refresh crm shell and customer workspace
This commit is contained in:
+13
-12
@@ -1,15 +1,16 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import { resolve } from 'path'
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': resolve(__dirname, 'src'), // @ 指向 src 目录
|
||||
},
|
||||
},
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
|
||||
const srcPath = decodeURIComponent(new URL('./src', import.meta.url).pathname).replace(/^\/([A-Za-z]:)/, '$1')
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': srcPath, // @ 指向 src 目录
|
||||
},
|
||||
},
|
||||
server: {
|
||||
port: 5173,
|
||||
// 开发环境代理:将 /api 请求转发到后端,避免 CORS 问题
|
||||
|
||||
Reference in New Issue
Block a user