首页完成

This commit is contained in:
2026-09-21 16:14:11 +08:00
parent c679642c40
commit 67c9090827
7 changed files with 448 additions and 362 deletions
+9 -3
View File
@@ -16,6 +16,8 @@ const { routerPushByKey } = useRouterPush();
const route = useRoute();
const loading = ref<boolean>(false);
// 返回键
const backKey = ref<string>('');
// 当前变更详情
const currentInfo = ref<any>(null);
// 当前变更id
@@ -64,7 +66,7 @@ const list = ref<any>([
// 返回
const back = () => {
routerPushByKey('my_mytask');
routerPushByKey(backKey.value as any);
};
// 上传文件
@@ -242,9 +244,13 @@ const getFileList = async () => {
}
}
onMounted(async () => {
onMounted(() => {
useDate.value = new Date().getTime();
if(route.query && route.query.id){
console.log(route.query)
if(route.query){
if(route.query.key){
backKey.value = route.query.key.toString();
}
if(route.query.id){
currentId.value = Number(route.query.id);
getFileList();