2c5c2b59 by zhangmeng

车辆

1 parent 26c826fd
......@@ -174,9 +174,11 @@ import { useRouter, useRoute } from 'vue-router'
import { useStorage } from '@vueuse/core/index'
import useUserStore from '@/store/modules/user'
import { getVehicleByCheckIn } from '@/apiPc/booking'
import { computed } from 'vue'
const useStore = useUserStore()
const user = computed(() => useUserStore().user)
const { proxy } = getCurrentInstance()
const user = useUserStore().user
const router = useRouter()
const route = useRoute()
const language = useStorage('language', 0)
......@@ -245,6 +247,11 @@ async function changeSelectOut() {
}
async function handleSubmit(v) {
if (!user.value) {
useStore.setVisitor()
return
}
let checkOut = {}
let obj = {}
if (v == 0) {
......@@ -292,7 +299,7 @@ async function handleSubmit(v) {
function goOrder(item, car) {
if (!user) {
if (!user.value) {
useUserStore().setReLogin()
return
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!