Compare commits
2 Commits
460e1d0e31
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 8edbc99be2 | |||
| f85c0c4cb7 |
44
package.json
44
package.json
@ -9,35 +9,35 @@
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"vue": "^3.5.13",
|
||||
"vue": "^3.5.26",
|
||||
"vue-router": "4",
|
||||
"less": "^4.3.0",
|
||||
"less": "^4.5.1",
|
||||
"timi-web": "link:..\\timi-web",
|
||||
"timi-tdesign-pc": "link:..\\timi-tdesign-pc",
|
||||
"tdesign-vue-next": "1.12.0"
|
||||
"tdesign-vue-next": "1.18.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^22.15.18",
|
||||
"@vitejs/plugin-vue": "^5.2.4",
|
||||
"@typescript-eslint/eslint-plugin": "^8.25.0",
|
||||
"@typescript-eslint/parser": "^8.25.0",
|
||||
"@vue/cli-plugin-babel": "^5.0.8",
|
||||
"@vue/compiler-sfc": "^3.5.13",
|
||||
"@types/node": "^25.0.8",
|
||||
"@vitejs/plugin-vue": "^6.0.3",
|
||||
"@typescript-eslint/eslint-plugin": "^8.53.0",
|
||||
"@typescript-eslint/parser": "^8.53.0",
|
||||
"@vue/cli-plugin-babel": "^5.0.9",
|
||||
"@vue/compiler-sfc": "^3.5.26",
|
||||
"@vue/eslint-config-prettier": "^10.2.0",
|
||||
"@vue/eslint-config-typescript": "^14.4.0",
|
||||
"typescript": "^5.8.3",
|
||||
"vite": "6.3.4",
|
||||
"vue-tsc": "^2.2.10",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-prettier": "^10.0.1",
|
||||
"eslint-plugin-prettier": "^5.2.3",
|
||||
"@vue/eslint-config-typescript": "^14.6.0",
|
||||
"typescript": "^5.9.3",
|
||||
"vite": "7.1.11",
|
||||
"vue-tsc": "^3.2.2",
|
||||
"eslint": "^9.39.2",
|
||||
"eslint-config-prettier": "^10.1.8",
|
||||
"eslint-plugin-prettier": "^5.5.5",
|
||||
"eslint-plugin-promise": "^7.2.1",
|
||||
"eslint-plugin-vue": "^9.32.0",
|
||||
"less": "^4.3.0",
|
||||
"prettier": "^3.5.2",
|
||||
"unplugin-auto-import": "^19.2.0",
|
||||
"unplugin-vue-components": "^28.5.0",
|
||||
"vite-plugin-dts": "^4.5.3",
|
||||
"eslint-plugin-vue": "^10.6.2",
|
||||
"less": "^4.5.1",
|
||||
"prettier": "^3.8.0",
|
||||
"unplugin-auto-import": "^21.0.0",
|
||||
"unplugin-vue-components": "^31.0.0",
|
||||
"vite-plugin-dts": "^4.5.4",
|
||||
"vite-plugin-vue-setup-extend": "^0.4.0"
|
||||
}
|
||||
}
|
||||
|
||||
1920
pnpm-lock.yaml
generated
1920
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -1,7 +1,7 @@
|
||||
import { Article, axios, Page, PageResult } from "timi-web";
|
||||
import { ArticleRanking } from "@/types/Article.ts";
|
||||
|
||||
async function page(page: Page): Promise<PageResult<Article<any>>> {
|
||||
async function page(page: Page<Article<any>>): Promise<PageResult<Article<any>>> {
|
||||
return axios.post("/article/list", page);
|
||||
}
|
||||
|
||||
|
||||
@ -81,7 +81,7 @@ const route = useRoute();
|
||||
// 页码
|
||||
const currentPage = computed(() => page.index + 1);
|
||||
// 分页参数
|
||||
const page = reactive<Page>({
|
||||
const page = reactive<Page<Article<any>>>({
|
||||
index: 0,
|
||||
size: 16
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user