update set ip
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user