From 2512e1ba13ea62dd91d83f5c4d69c3d81f7cd77f Mon Sep 17 00:00:00 2001 From: QM303176530 <303176530@qq.com> Date: Sun, 28 Jun 2020 21:29:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=A4=BA=E4=BE=8B=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/utils/dictionary.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/utils/dictionary.js b/web/src/utils/dictionary.js index fd4d8a28..c005a129 100644 --- a/web/src/utils/dictionary.js +++ b/web/src/utils/dictionary.js @@ -1,5 +1,5 @@ import { store } from '@/store/index' - +// 获取字典方法 使用示例 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]