mirror of
https://github.com/yangzongzhuan/RuoYi-Vue.git
synced 2025-11-08 10:19:24 +00:00
RuoYi-Vue 1.0
This commit is contained in:
9
ruoyi-ui/src/assets/icons/index.js
Normal file
9
ruoyi-ui/src/assets/icons/index.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import Vue from 'vue'
|
||||
import SvgIcon from '@/components/SvgIcon'// svg component
|
||||
|
||||
// register globally
|
||||
Vue.component('svg-icon', SvgIcon)
|
||||
|
||||
const req = require.context('./svg', false, /\.svg$/)
|
||||
const requireAll = requireContext => requireContext.keys().map(requireContext)
|
||||
requireAll(req)
|
||||
Reference in New Issue
Block a user