mirror of
https://github.com/flipped-aurora/gin-vue-admin.git
synced 2026-09-21 20:35:16 +00:00
added ESlint 语法检测
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { store } from '@/store/index'
|
||||
import { store } from '@/store'
|
||||
// 获取字典方法 使用示例 getDict('sex').then(res) 或者 async函数下 const res = await getDict('sex')
|
||||
export const getDict = async (type) => {
|
||||
await store.dispatch("dictionary/getDictionary", type)
|
||||
return store.getters["dictionary/getDictionary"][type]
|
||||
}
|
||||
export const getDict = async(type) => {
|
||||
await store.dispatch('dictionary/getDictionary', type)
|
||||
return store.getters['dictionary/getDictionary'][type]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user