refactor: 移除字典全局方法

Former-commit-id: ba748c61727908460505f06007dbca9512a7fb92
This commit is contained in:
haoxr
2023-03-11 20:47:40 +08:00
parent 966ad2ce95
commit a135552f27

View File

@@ -12,7 +12,6 @@ import 'virtual:svg-icons-register';
import i18n from '@/lang/index';
import '@/styles/index.scss';
import 'element-plus/theme-chalk/index.css';
import 'element-plus/theme-chalk/dark/css-vars.css';
import 'uno.css';
@@ -24,10 +23,6 @@ Object.keys(directive).forEach(key => {
app.directive(key, (directive as { [key: string]: Directive })[key]);
});
// 全局方法
import { getDictionaries } from '@/api/dict';
app.config.globalProperties.$getDictionaries = getDictionaries;
// 全局挂载
setupStore(app);
app.use(router).use(i18n).mount('#app');