mirror of
				https://gitee.com/hhyykk/ipms-sjy-ui.git
				synced 2025-10-31 18:28:44 +08:00 
			
		
		
		
	移除vex hooks自动导入,修复打包报错
This commit is contained in:
		| @@ -19,10 +19,12 @@ import { createSvgIconsPlugin } from 'vite-plugin-svg-icons' | |||||||
|  |  | ||||||
| export function createVitePlugins() { | export function createVitePlugins() { | ||||||
|   const root = process.cwd() |   const root = process.cwd() | ||||||
|  |  | ||||||
|   // 路径查找 |   // 路径查找 | ||||||
|   function pathResolve(dir: string) { |   function pathResolve(dir: string) { | ||||||
|     return resolve(root, '.', dir) |     return resolve(root, '.', dir) | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   return [ |   return [ | ||||||
|     Vue(), |     Vue(), | ||||||
|     VueJsx(), |     VueJsx(), | ||||||
| @@ -45,8 +47,6 @@ export function createVitePlugins() { | |||||||
|         { |         { | ||||||
|           '@/hooks/web/useI18n': ['useI18n'], |           '@/hooks/web/useI18n': ['useI18n'], | ||||||
|           '@/hooks/web/useMessage': ['useMessage'], |           '@/hooks/web/useMessage': ['useMessage'], | ||||||
|           '@/hooks/web/useXTable': ['useXTable'], |  | ||||||
|           '@/hooks/web/useVxeCrudSchemas': ['useVxeCrudSchemas'], |  | ||||||
|           '@/hooks/web/useTable': ['useTable'], |           '@/hooks/web/useTable': ['useTable'], | ||||||
|           '@/hooks/web/useCrudSchemas': ['useCrudSchemas'], |           '@/hooks/web/useCrudSchemas': ['useCrudSchemas'], | ||||||
|           '@/utils/formRules': ['required'], |           '@/utils/formRules': ['required'], | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 puhui999
					puhui999