|
|
@@ -59,10 +59,10 @@
|
|
|
import store from "../store";
|
|
|
import router from "../router";
|
|
|
import { onMounted, ref } from "vue";
|
|
|
-// import { AnonymousLogin, tcb } from "../apis/cloudLogin";
|
|
|
-// const db = tcb.database();
|
|
|
-// const v = db.collection("huihenduo_versions");
|
|
|
-// const __ = db.command;
|
|
|
+import { AnonymousLogin, tcb } from "../apis/cloudLogin";
|
|
|
+const db = tcb.database();
|
|
|
+const v = db.collection("huihenduo_versions");
|
|
|
+const __ = db.command;
|
|
|
|
|
|
export default {
|
|
|
setup() {
|
|
|
@@ -89,8 +89,8 @@ export default {
|
|
|
}
|
|
|
|
|
|
async function cloudLogin() {
|
|
|
- // await AnonymousLogin();
|
|
|
- // getAbledVersions();
|
|
|
+ await AnonymousLogin();
|
|
|
+ getAbledVersions();
|
|
|
}
|
|
|
return {
|
|
|
quit,
|