- 弃用 service 请求,重新设计了 request 请求方案。
- 用户信息绑定方式更改为 userInfo
This commit is contained in:
8
.vscode/template.code-snippets
vendored
8
.vscode/template.code-snippets
vendored
@@ -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() {",
|
||||
|
||||
Reference in New Issue
Block a user