- 弃用 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

@@ -42,11 +42,11 @@ const data = ref<ClListViewItem[]>([]);
onReady(() => {
ui.showLoading();
request<UTSJSONObject[]>({
request({
url: "https://unix.cool-js.com/data/pca_flat.json"
})
.then((res) => {
data.value = useListView(res);
data.value = useListView(res as UTSJSONObject[]);
})
.catch((err) => {
console.error(err);