This commit is contained in:
kron
2025-06-16 11:26:57 +08:00
parent e4c49a3772
commit 4e522cf300
5 changed files with 46 additions and 11 deletions

View File

@@ -7,7 +7,7 @@ import Avatar from "@/components/Avatar.vue";
import useStore from "@/store";
import { storeToRefs } from "pinia";
const store = useStore();
const { user } = storeToRefs(store);
const { user, device } = storeToRefs(store);
const { updateUser } = store;
const toOrderPage = () => {
@@ -17,6 +17,12 @@ const toOrderPage = () => {
};
const toFristTryPage = () => {
if (!device.value.deviceId) {
return uni.showToast({
title: "请先绑定设备",
icon: "none",
});
}
uni.navigateTo({
url: "/pages/first-try",
});