添加前端

This commit is contained in:
橙子
2022-04-26 01:34:47 +08:00
parent f3061ed643
commit 630cfb6769
99 changed files with 5239 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
/**
* plugins/app.js
*
* Automatically loads and bootstraps files
* in the `./src/components/` folder.
*/
// Imports
import Vue from 'vue'
const requireComponent = require.context('@/components', true, /\.vue$/)
for (const file of requireComponent.keys()) {
const componentConfig = requireComponent(file)
Vue.component(
componentConfig.default.name,
componentConfig.default || componentConfig,
)
}