提交 7254b65b authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw

feat: 添加loading说明

上级 02230d5e
......@@ -18,3 +18,12 @@ export const tryHideLoading = identification => {
}
}
/**
* 说明
* 要在view中加loading只需要两个步骤
* 1.在vue页面文件中加 v-loading="$store.getters.loadingMap[$store.getters.currentPath]"
* 例如:views/system/user/index.vue
* 2.在需要loading的api中添加config {loading: true}
* 例如:api/system/user.js中userLists方法 需要配置loading: true
* 针对整个view页面,需要局部loading请在对应页面中自己添加
*/
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论