update set ip

This commit is contained in:
Cjsah
2024-06-16 10:27:43 +08:00
parent c9e8972b8b
commit b5c509f4ef
7 changed files with 91 additions and 25 deletions
+8
View File
@@ -57,12 +57,20 @@ export const useBookStore = defineStore("book", {
setConnectType(connectType) {
this.connectType = connectType;
},
resetConnect() {
this.connectStatus = "正在连接后端服务器……";
this.connectType = "";
this.clearBooks();
},
setNewConnect(newConnect) {
this.newConnect = newConnect;
},
addBooks(books) {
this.shelf = books;
},
clearBooks() {
this.shelf = [];
},
setCatalog(catalog) {
this.catalog = catalog;
},