摘要:
方式一: main.js 设置全局变量 import api from '@/api' app.config.globalProperties.$api = api 使用全局变量,使用 getCurrentInstance 方法。 // ctx.$api 就是全局设置的变量 const { prox 阅读全文
posted @ 2022-07-30 23:33
DL·Coder
阅读(7430)
评论(0)
推荐(0)
摘要:
vite 配置 //element 全局默认大小为small app.config.globalProperties.$ELEMENT = { size: 'small', } 阅读全文
posted @ 2022-07-30 23:31
DL·Coder
阅读(1934)
评论(0)
推荐(0)
摘要:
App.vue 直接拷贝 <template> <el-config-provider :locale="locale"> <router-view /> </el-config-provider> </template> <script > import { ElConfigProvider } 阅读全文
posted @ 2022-07-30 23:21
DL·Coder
阅读(233)
评论(0)
推荐(0)