98f128c8 by yyx

1

1 parent c4c61597
...@@ -81,15 +81,15 @@ const select_form = reactive({ ...@@ -81,15 +81,15 @@ const select_form = reactive({
81 // 去选座 81 // 去选座
82 async toSelectSeat() { 82 async toSelectSeat() {
83 // 检查登录 83 // 检查登录
84 const ticketUserToken = getToken(); 84 // const ticketUserToken = getToken();
85 if (!ticketUserToken) { 85 // if (!ticketUserToken) {
86 const userId = userStore.user?.userId; // [TODO] 从原项目中取已登录的用户ID 86 const userId = userStore.user?.userId; // [TODO] 从原项目中取已登录的用户ID
87 if (!userId) { 87 if (!userId) {
88 // 未登录,打开登录弹窗 88 // 未登录,打开登录弹窗
89 return userStore.setVisitor(); 89 return userStore.setVisitor();
90 }
91 await login(userId);
92 } 90 }
91 // }
92 await login(userId);
93 93
94 if (!select_form.venueItem?.id) 94 if (!select_form.venueItem?.id)
95 return ElMessage({ type: "warning", message: "请选择时间" }); 95 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!