diff --git a/vue3/index.html b/vue3/index.html
index 3dcc439a..eee0eeed 100644
--- a/vue3/index.html
+++ b/vue3/index.html
@@ -6,10 +6,10 @@
-
-
+
{{ $t("login.username") }}: admin
{{ $t("login.password") }}: 123456
@@ -121,7 +121,7 @@
v-show="useAppStore().device == 'desktop'"
>
- Copyright © 2021 - 2024 youlai.tech All Rights Reserved. 有来技术
+ Copyright © 2021 - 2024 youlai.tech All Rights Reserved. 启航电商
版权所有
皖ICP备20006496号-3
@@ -142,7 +142,7 @@ import { useAppStore } from "@/store/modules/app";
// API依赖
import { LocationQuery, LocationQueryValue, useRoute } from "vue-router";
-import { getCaptchaApi } from "@/api/auth";
+
import { LoginData } from "@/api/auth/types";
const settingsStore = useSettingsStore();
@@ -182,7 +182,7 @@ const loginFormRef = ref(ElForm); // 登录表单ref
const loginData = ref
({
username: "admin",
- password: "123456",
+ password: "admin123",
});
const { t } = useI18n();
@@ -231,12 +231,12 @@ function checkCapslock(e: any) {
/**
* 获取验证码
*/
-function getCaptcha() {
- getCaptchaApi().then(({ data }) => {
- loginData.value.captchaKey = data.captchaKey;
- captchaBase64.value = data.captchaBase64;
- });
-}
+// function getCaptcha() {
+// getCaptchaApi().then(({ data }) => {
+// loginData.value.captchaKey = data.captchaKey;
+// captchaBase64.value = data.captchaBase64;
+// });
+// }
/**
* 根据组件大小调整验证码图片高度
*/
@@ -289,7 +289,7 @@ function handleLogin() {
}
onMounted(() => {
- getCaptcha();
+ // getCaptcha();
// 主题初始化
const theme = useSettingsStore().theme;
diff --git a/vue3/vite.config.ts b/vue3/vite.config.ts
index 16123a8e..caad601b 100644
--- a/vue3/vite.config.ts
+++ b/vue3/vite.config.ts
@@ -52,9 +52,9 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
[env.VITE_APP_BASE_API]: {
changeOrigin: true,
// 线上接口地址
- target: "http://vapi.youlai.tech",
+ // target: "http://www.qihang.com",
// 开发接口地址
- //target: "http://localhost:8989",
+ target: "http://localhost:8080",
rewrite: (path) =>
path.replace(new RegExp("^" + env.VITE_APP_BASE_API), ""),
},