配置代码
This commit is contained in:
@@ -2,6 +2,7 @@ import { createApp } from 'vue'
|
||||
// import Cookies from 'js-cookie'
|
||||
|
||||
import ElementPlus from 'element-plus'
|
||||
import { dayjs } from 'element-plus'
|
||||
import 'dayjs/locale/zh-cn'
|
||||
import '@/assets/styles/index.scss' // global css
|
||||
|
||||
@@ -61,6 +62,8 @@ app.config.globalProperties.handleTree = handleTree
|
||||
app.config.globalProperties.addDateRange = addDateRange
|
||||
app.config.globalProperties.selectDictLabel = selectDictLabel
|
||||
app.config.globalProperties.dateOptions = dateOptions
|
||||
app.config.globalProperties.dayjs = dayjs
|
||||
app.config.globalProperties.$dayjs = dayjs
|
||||
|
||||
// 全局组件挂载
|
||||
app.component('DictTag', DictTag)
|
||||
|
||||
Reference in New Issue
Block a user