- 弃用 service 请求,重新设计了 request 请求方案。

- 用户信息绑定方式更改为 userInfo
This commit is contained in:
icssoa
2025-08-27 19:27:52 +08:00
parent 2bab42954a
commit d4c7467f8b
25 changed files with 222 additions and 528 deletions

View File

@@ -12,7 +12,7 @@
"</template>",
"",
"<script lang=\"ts\" setup>",
"import { service, router } from \"@/cool\";",
"import { router } from \"@/cool\";",
"",
"</script>",
"",
@@ -35,7 +35,7 @@
"",
"<script lang=\"ts\" setup>",
"import { ref } from \"vue\";",
"import { service, router } from \"@/cool\";",
"import { router } from \"@/cool\";",
"",
"// 是否可见",
"const visible = ref(false);",
@@ -90,7 +90,7 @@
"",
"<script lang=\"ts\" setup>",
"import { ref } from \"vue\";",
"import { usePager } from \"@/cool\";",
"import { usePager, request } from \"@/cool\";",
"import { useUi } from \"@/uni_modules/cool-ui\";",
"",
"const ui = useUi();",
@@ -98,7 +98,7 @@
"const listViewRef = ref<ClListViewComponentPublicInstance | null>(null);",
"",
"const { refresh, listView, loading, loadMore } = usePager((params) => {",
" return service.$1.page(params);",
" return request({ $1 });",
"});",
"",
"async function onPull() {",