This commit is contained in:
dzc committed 2025-01-07 14:34:46 +08:00
1 parent c67dbb4651
commit c5fb0bd087
2 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -8,20 +8,20 @@ import { applyApi } from "@@/api"
const state = reactive<any>({
pa: {
id: null,
bizId: null,
pagesize: 99,
},
})
const pageRef = ref<any>(null)
const pageHook = hooks.usePage(pageRef, applyApi.codeList, null, 'data')
const pageHook = hooks.usePage(pageRef, applyApi.codeList, null, 'data.records')
const query = (page: number, pagesize: number) => {
pageHook.startPage(page, pagesize, false, state.pa);
}
onLoad((options: any) => {
if (!isEmpty(options.id)) {
state.pa.id = options.id
state.pa.bizId = options.id
}
});
onShow(() => {
+2 -2
View File
@@ -51,13 +51,13 @@ export default {
method: "POST",
params: {
username,
password: encPassword,
password: password,
randomStr,
code,
grant_type,
scope,
},
data: { password: encPassword },
data: { password: password },
header: {
skipToken: true,
Authorization: basicAuth,