UI调整
This commit is contained in:
@@ -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",
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user