'admin-22.04.19:修复打包错误问题'
This commit is contained in:
		
							parent
							
								
									d50627e0df
								
							
						
					
					
						commit
						805f991791
					
				| @ -22,7 +22,6 @@ | |||||||
| - 🐞 修复 分栏模式下,选中的菜单是 primary 样式,鼠标移入字也变成 primary 色了,感谢群友@孤夜-流殇 | - 🐞 修复 分栏模式下,选中的菜单是 primary 样式,鼠标移入字也变成 primary 色了,感谢群友@孤夜-流殇 | ||||||
| - 🐞 修复 [vuex 里面改了颜色 但是不生效 #I4WFMA](https://gitee.com/lyt-top/vue-next-admin/issues/I4WFMA) | - 🐞 修复 [vuex 里面改了颜色 但是不生效 #I4WFMA](https://gitee.com/lyt-top/vue-next-admin/issues/I4WFMA) | ||||||
| - 🐞 修复 全局主题 primary 清空颜色后报错,[#I4X0LG](https://gitee.com/lyt-top/vue-next-admin/issues/I4X0LG),感谢[面向 BUG 编程](https://gitee.com/fhtfy) | - 🐞 修复 全局主题 primary 清空颜色后报错,[#I4X0LG](https://gitee.com/lyt-top/vue-next-admin/issues/I4X0LG),感谢[面向 BUG 编程](https://gitee.com/fhtfy) | ||||||
| - 🐞 修复 [模拟动态路由时刷新会丢失路由 #I4PR9S](https://gitee.com/lyt-top/vue-next-admin/issues/I4PR9S),感谢[tottimctj](https://gitee.com/tottimctj) |  | ||||||
| - 🐞 修复 [.eslintrc.js 文件 rules 标签名错误 #I53IPK](https://gitee.com/lyt-top/vue-next-admin/issues/I53IPK),感谢[yuyong1566](https://gitee.com/yuyong1566) | - 🐞 修复 [.eslintrc.js 文件 rules 标签名错误 #I53IPK](https://gitee.com/lyt-top/vue-next-admin/issues/I53IPK),感谢[yuyong1566](https://gitee.com/yuyong1566) | ||||||
| 
 | 
 | ||||||
| ## 2.0.2 | ## 2.0.2 | ||||||
|  | |||||||
| @ -21,5 +21,5 @@ export async function initFrontEndControlRoutes() { | |||||||
| 	// 添加动态路由
 | 	// 添加动态路由
 | ||||||
| 	await setAddRoute(); | 	await setAddRoute(); | ||||||
| 	// 设置递归过滤有权限的路由到 vuex routesList 中(已处理成多级嵌套路由)及缓存多级嵌套数组处理后的一维数组
 | 	// 设置递归过滤有权限的路由到 vuex routesList 中(已处理成多级嵌套路由)及缓存多级嵌套数组处理后的一维数组
 | ||||||
| 	setFilterMenuAndCacheTagsViewRoutes(); | 	await setFilterMenuAndCacheTagsViewRoutes(); | ||||||
| } | } | ||||||
|  | |||||||
| @ -203,7 +203,7 @@ const storesThemeConfig = useThemeConfig(pinia); | |||||||
| const { themeConfig } = storeToRefs(storesThemeConfig); | const { themeConfig } = storeToRefs(storesThemeConfig); | ||||||
| const { isRequestRoutes } = themeConfig.value; | const { isRequestRoutes } = themeConfig.value; | ||||||
| // 前端控制路由:初始化方法,防止刷新时路由丢失
 | // 前端控制路由:初始化方法,防止刷新时路由丢失
 | ||||||
| if (!isRequestRoutes) await initFrontEndControlRoutes(); | if (!isRequestRoutes) initFrontEndControlRoutes(); | ||||||
| 
 | 
 | ||||||
| // 路由加载前
 | // 路由加载前
 | ||||||
| router.beforeEach(async (to, from, next) => { | router.beforeEach(async (to, from, next) => { | ||||||
|  | |||||||
| @ -46,7 +46,7 @@ const viteConfig = defineConfig((mode: ConfigEnv) => { | |||||||
| 					assetFileNames: `assets/[name].${new Date().getTime()}.[ext]`, | 					assetFileNames: `assets/[name].${new Date().getTime()}.[ext]`, | ||||||
| 					compact: true, | 					compact: true, | ||||||
| 					manualChunks: { | 					manualChunks: { | ||||||
| 						vue: ['vue', 'vue-router', 'vuex'], | 						vue: ['vue', 'vue-router', 'pinia'], | ||||||
| 						echarts: ['echarts'], | 						echarts: ['echarts'], | ||||||
| 					}, | 					}, | ||||||
| 				}, | 				}, | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user