feat:修改重新报名

This commit is contained in:
lixg
2023-03-09 11:56:33 +08:00
parent 4c99334e3c
commit daa85bad28
10 changed files with 79 additions and 48 deletions

View File

@@ -46,7 +46,6 @@ export function useRequest(_url, params = {}, callback) {
const state = reactive({
data: {},
loading: false,
})
watch(params, () => {
@@ -58,7 +57,7 @@ export function useRequest(_url, params = {}, callback) {
request(_url, params).then(r => {
state.data = r.data
state.loading = false
callback(r)
callback?.(r)
})
}