代码提交

This commit is contained in:
Linzm committed 2026-01-16 10:48:19 +08:00
1 parent c30768d605
commit b52dcc0842
14 files changed
+3997 -38

No files matched your search

+5 -4
View File
@@ -710,7 +710,7 @@ const getPid = async () => {
try {
const uploadTasks = [
sendToOss(imgurl.value, res.url),
sendToOss(imgurl.value, res.oss_url)
// sendToOss(imgurl.value, res.oss_url)
]
await Promise.all(uploadTasks)
if (typeId.value == 4 && prodId.value == 19 && referPicture.value.length > 0) {
@@ -898,9 +898,10 @@ function Encrypt(word: string): string {
return encrypted.ciphertext.toString();
}
function handleBeforeUnload(_event: BeforeUnloadEvent) {
localStorage.remove('code')
localStorage.remove('trialCode')
localStorage.remove('userId')
// code 的清除已在 main.ts 中统一处理,这里只清除 userId(如果需要)
// 注意:刷新时不应该清除 userId,只有关闭时才清除
// 由于无法精确区分刷新和关闭,这里保留清除逻辑,但主要依赖 main.ts 的处理
// localStorage.remove('userId')
}
onMounted(() => {
getSundryList()