dev
Wayne 3 years ago
parent 96b7cb11ec
commit d0d7586679

@ -1,7 +1,7 @@
VITE_APP_BASE_URL = 'http://localhost:8080/'
VITE_APP_BASE_URL = 'https://shop.h888.fun/'
VITE_APP_BACKEND_URL = 'http://localhost:8080/adm/'
VITE_APP_BACKEND_URL = 'https://shop.h888.fun/adm/'
VITE_APP_IMG_URL = 'http://localhost:8080/'
VITE_APP_IMG_URL = 'https://shop.h888.fun/'
VITE_APP_API_URL = 'http://localhost:8080/adminapi/v1'
VITE_APP_API_URL = 'https://shop.h888.fun/adminapi/v1'

@ -1,7 +1,7 @@
VITE_APP_BASE_URL = 'http://localhost:8080/'
VITE_APP_BASE_URL = 'https://shop.h888.fun/'
VITE_APP_BACKEND_URL = 'http://localhost:8080/adm/'
VITE_APP_BACKEND_URL = 'https://shop.h888.fun/adm/'
VITE_APP_IMG_URL = 'http://localhost:8080/'
VITE_APP_IMG_URL = 'https://shop.h888.fun/'
VITE_APP_API_URL = 'http://localhost:8080/adminapi/v1'
VITE_APP_API_URL = 'https://shop.h888.fun/adminapi/v1'

@ -89,12 +89,13 @@ const onSubmit = async () => {
let { data: res} = await axios.post(import.meta.env.VITE_APP_BACKEND_URL + "privilege.php?act=signin", form.value);
if (res.code !== 200) {
captchaImgUrl.value = import.meta.env.VITE_APP_BACKEND_URL + 'index.php?act=captcha&'+Math.random()
form.value.captcha = ""
return ElMessage.error(res.data.msg);
}
Cookies.set('Authorization', 'Bearer ' + res.token)
window.location.href = "index.php";
return
}catch(e){
console.log(e);
}

Loading…
Cancel
Save