fix:增加学习路径图loading

This commit is contained in:
wyx
2023-01-16 17:29:23 +08:00
parent 864d0637af
commit fe2ea2fdb9
2 changed files with 21 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ import axios from 'axios';
import { getCookie } from "@/api/utils";
import JSONBigInt from 'json-bigint';
const JSONBigIntStr = JSONBigInt({ storeAsString: true });
export function usePage(_url, param) {
export function usePage(_url, param, callback) {
const state = reactive({
data: {},
@@ -28,6 +28,7 @@ export function usePage(_url, param) {
state.total = r.data.total
state.current = r.data.current
state.loading = false
callback(r)
})
}