|
@@ -91,7 +91,7 @@ import collectionBottomBg from "@/assets/img/collectionBottomBg.png";
|
|
|
import goArrow from "@/assets/img/goArrow.png";
|
|
|
import { CollectionModel } from "@/model/collection";
|
|
|
import { CollectionAndWrong } from "@/api/index";
|
|
|
-import { Dialog } from "vant";
|
|
|
+import { Dialog, Toast } from "vant";
|
|
|
import { RouterBus } from "@/hooks";
|
|
|
const router = useRouter();
|
|
|
const query = useRoute().query;
|
|
@@ -144,6 +144,7 @@ const sendWrongSync = (column: { text: string; value: number }) => {
|
|
|
.then((res) => {
|
|
|
wrongList.value = res.data;
|
|
|
window.localStorage.setItem(userWrongKey, JSON.stringify(wrongList.value||[]));
|
|
|
+ Toast('成功同步')
|
|
|
});
|
|
|
});
|
|
|
break;
|
|
@@ -160,6 +161,7 @@ const sendWrongSync = (column: { text: string; value: number }) => {
|
|
|
})
|
|
|
.then((res) => {
|
|
|
wrongList.value = res.data;
|
|
|
+ Toast('成功备份')
|
|
|
});
|
|
|
});
|
|
|
break;
|
|
@@ -171,6 +173,7 @@ const sendWrongSync = (column: { text: string; value: number }) => {
|
|
|
.then((res) => {
|
|
|
wrongList.value = res.data;
|
|
|
window.localStorage.setItem(userWrongKey, JSON.stringify(wrongList.value||[]));
|
|
|
+ Toast('成功同步')
|
|
|
});
|
|
|
break;
|
|
|
}
|
|
@@ -198,6 +201,7 @@ const sendCollectSync = (column: { text: string; value: number }) => {
|
|
|
.then((res) => {
|
|
|
collectionList.value = res.data;
|
|
|
window.localStorage.setItem(userCollectKey, JSON.stringify(collectionList.value||[]));
|
|
|
+ Toast('成功同步')
|
|
|
});
|
|
|
});
|
|
|
break;
|
|
@@ -214,6 +218,7 @@ const sendCollectSync = (column: { text: string; value: number }) => {
|
|
|
})
|
|
|
.then((res) => {
|
|
|
collectionList.value = res.data;
|
|
|
+ Toast('成功备份')
|
|
|
});
|
|
|
});
|
|
|
break;
|
|
@@ -225,6 +230,7 @@ const sendCollectSync = (column: { text: string; value: number }) => {
|
|
|
.then((res) => {
|
|
|
collectionList.value = res.data;
|
|
|
window.localStorage.setItem(userCollectKey, JSON.stringify(collectionList.value||[]));
|
|
|
+ Toast('成功同步')
|
|
|
});
|
|
|
break;
|
|
|
}
|