|
|
@ -10,6 +10,7 @@ import { useStatusStore } from "./stores/status"; |
|
|
|
import { ElMessage } from "element-plus"; |
|
|
|
import { getUserList } from "./services/user/userManager"; |
|
|
|
import { useUserStore } from "./stores/user"; |
|
|
|
import { getOreList } from "./services/ore/oreManage"; |
|
|
|
const router = useRouter(); |
|
|
|
const settingStore = useSettingStore(); |
|
|
|
const statusStore = useStatusStore(); |
|
|
@ -24,6 +25,8 @@ wsClient.dataOb.subscribe(data => { |
|
|
|
message: data.data.msg, |
|
|
|
type: "warning", |
|
|
|
}); |
|
|
|
} else if (data.type === "crafts") { |
|
|
|
console.log("crafts:", data); |
|
|
|
} |
|
|
|
}); |
|
|
|
wsClient.connect(); |
|
|
@ -55,6 +58,11 @@ onMounted(() => { |
|
|
|
userStore.setUserList(res.data.list); |
|
|
|
} |
|
|
|
}); |
|
|
|
getOreList({ pageNum: 1, pageSize: 9999 }).then(res => { |
|
|
|
if (res.success) { |
|
|
|
settingStore.setOreList(res.data.list); |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
</script> |
|
|
|
|
|
|
|