98f128c8 by yyx

1

1 parent c4c61597
......@@ -81,15 +81,15 @@ const select_form = reactive({
// 去选座
async toSelectSeat() {
// 检查登录
const ticketUserToken = getToken();
if (!ticketUserToken) {
const userId = userStore.user?.userId; // [TODO] 从原项目中取已登录的用户ID
if (!userId) {
// 未登录,打开登录弹窗
return userStore.setVisitor();
}
await login(userId);
// const ticketUserToken = getToken();
// if (!ticketUserToken) {
const userId = userStore.user?.userId; // [TODO] 从原项目中取已登录的用户ID
if (!userId) {
// 未登录,打开登录弹窗
return userStore.setVisitor();
}
// }
await login(userId);
if (!select_form.venueItem?.id)
return ElMessage({ type: "warning", message: "请选择时间" });
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!