feat: 添加loading说明

This commit is contained in:
fit2cloud-chenyw 2021-03-04 15:05:05 +08:00
parent 02230d5e51
commit 7254b65bd9

View File

@ -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请在对应页面中自己添加
*/