fix(工具箱): 解决打包后工具页面无法显示的问题
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
// 工具箱
|
||||
|
||||
const META_URL = import.meta.url;
|
||||
const MODULES = import.meta.glob('@/views/ToolboxView/**/*.vue');
|
||||
const MODULES = import.meta.glob('../../views/ToolboxView/**/*.vue');
|
||||
|
||||
/**
|
||||
* @desc 工具列表
|
||||
@@ -230,7 +229,7 @@ export const toolList = [
|
||||
*/
|
||||
function getDynamicComponent(path) {
|
||||
|
||||
let key = new URL(`../../views/ToolboxView/${path}.vue`, META_URL).pathname;
|
||||
let key = `../../views/ToolboxView/${path}.vue`;
|
||||
let component = MODULES[key];
|
||||
|
||||
return component;
|
||||
|
Reference in New Issue
Block a user