|
|
@@ -60,10 +60,11 @@ async function handleSubmit() {
|
|
|
}
|
|
|
async function getDataCode() {
|
|
|
const uuid = getUUID();
|
|
|
- // imgPath.value = `${import.meta.env.VITE_SERVICE_BASE_URL}/captcha.jpg?uuid=${uuid}`;
|
|
|
- imgPath.value = import.meta.env.DEV
|
|
|
- ? `${import.meta.env.VITE_SERVICE_BASE_URL}/captcha.jpg?uuid=${uuid}`
|
|
|
- : `https://shop.backend.zswlgz.com/plt/captcha.jpg?uuid=${uuid}`;
|
|
|
+ console.log(import.meta.env.MODE, '当前环境');
|
|
|
+ imgPath.value =
|
|
|
+ import.meta.env.MODE == 'test'
|
|
|
+ ? `${import.meta.env.VITE_SERVICE_BASE_URL}/captcha.jpg?uuid=${uuid}`
|
|
|
+ : `https://shop.backend.zswlgz.com/plt/captcha.jpg?uuid=${uuid}`;
|
|
|
sessionUUID.value = uuid;
|
|
|
}
|
|
|
getDataCode();
|