| 12345678910111213141516171819202122232425262728293031 |
- const com = {
- complete: {
- async main(args: { options: IRequestOption }) {
- if (store.common.data.debug) {
- await func.awaiter()
- }
- if (args.options.ext.showLoading) {
- if (--com.loading.count === 0) {
- com.loading.hide()
- // if (utils.store.curPage) {
- // utils.store.curPage.common.show = true;
- // }
- }
- }
- },
- },
- loading: {
- cur: null,
- count: 0,
- show(options: IRequestOption) {
- com.loading.count++
- uni.showLoading({
- title: options.ext.loadingText,
- })
- },
- hide() {
- uni.hideLoading()
- },
- },
- }
- export default com
|