学习创建app框架。

This commit is contained in:
2023-01-06 23:19:26 +08:00
parent c3ebdbf7c9
commit 0b79a94bda
29 changed files with 147 additions and 10 deletions

View File

@@ -0,0 +1,22 @@
/*
* @Author: Kane
* @Date: 2023-01-06 20:49:04
* @LastEditors: Kane
* @LastEditTime: 2023-01-06 20:58:42
* @FilePath: \admin_system\src\components\svg\svg.js
* @Description: 导入svg图标
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
*/
const svgContext = require.context("./icons", true, /\.svg$/);
console.log(svgContext);
function requireAll(context)
{
return context.keys().map(context);
}
const svgMap = requireAll(svgContext);
console.log("导入svg");
console.log(svgMap);