This commit is contained in:
启航 2024-01-23 10:36:33 +08:00
parent 6017a96b80
commit bb716e93e2
5 changed files with 19 additions and 19 deletions

View File

@ -6,10 +6,10 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta <meta
name="description" name="description"
content="Vue3 + Vite4 + TypeScript5 + Element-Plus 的后台管理模板配套接口文档和后端源码vue-element-admin 的 Vue3 版本" content="启航电商OMS订单处理系统"
/> />
<meta name="keywords" content="vue-element-admin,vue3-element-admin" /> <meta name="keywords" content="oms,oms订单处理系统" />
<title>vue3-element-admin</title> <title>启航电商OMS订单处理系统</title>
</head> </head>
<body> <body>

View File

@ -111,8 +111,8 @@
"vite-plugin-svg-icons": "^2.0.1", "vite-plugin-svg-icons": "^2.0.1",
"vue-tsc": "^1.8.27" "vue-tsc": "^1.8.27"
}, },
"repository": "https://gitee.com/youlaiorg/vue3-element-admin.git", "repository": "https://gitee.com/qiliping/qihang.ecom.oms.git",
"author": "有来开源组织", "author": "启航",
"license": "MIT", "license": "MIT",
"engines": { "engines": {
"node": ">=18.0.0" "node": ">=18.0.0"

View File

@ -1,6 +1,6 @@
<!-- <!--
多图上传组件 多图上传组件
@author: youlaitech @author:
@date 2022/11/20 @date 2022/11/20
--> -->

View File

@ -108,7 +108,7 @@
</el-button> </el-button>
<!-- 账号密码提示 --> <!-- 账号密码提示 -->
<div class="mt-10 text-sm"> <div class="mt-10 text-sm" v-if="false">
<span>{{ $t("login.username") }}: admin</span> <span>{{ $t("login.username") }}: admin</span>
<span class="ml-4"> {{ $t("login.password") }}: 123456</span> <span class="ml-4"> {{ $t("login.password") }}: 123456</span>
</div> </div>
@ -121,7 +121,7 @@
v-show="useAppStore().device == 'desktop'" v-show="useAppStore().device == 'desktop'"
> >
<p> <p>
Copyright © 2021 - 2024 youlai.tech All Rights Reserved. 有来技术 Copyright © 2021 - 2024 youlai.tech All Rights Reserved. 启航电商
版权所有 版权所有
</p> </p>
<p>皖ICP备20006496号-3</p> <p>皖ICP备20006496号-3</p>
@ -142,7 +142,7 @@ import { useAppStore } from "@/store/modules/app";
// API // API
import { LocationQuery, LocationQueryValue, useRoute } from "vue-router"; import { LocationQuery, LocationQueryValue, useRoute } from "vue-router";
import { getCaptchaApi } from "@/api/auth";
import { LoginData } from "@/api/auth/types"; import { LoginData } from "@/api/auth/types";
const settingsStore = useSettingsStore(); const settingsStore = useSettingsStore();
@ -182,7 +182,7 @@ const loginFormRef = ref(ElForm); // 登录表单ref
const loginData = ref<LoginData>({ const loginData = ref<LoginData>({
username: "admin", username: "admin",
password: "123456", password: "admin123",
}); });
const { t } = useI18n(); const { t } = useI18n();
@ -231,12 +231,12 @@ function checkCapslock(e: any) {
/** /**
* 获取验证码 * 获取验证码
*/ */
function getCaptcha() { // function getCaptcha() {
getCaptchaApi().then(({ data }) => { // getCaptchaApi().then(({ data }) => {
loginData.value.captchaKey = data.captchaKey; // loginData.value.captchaKey = data.captchaKey;
captchaBase64.value = data.captchaBase64; // captchaBase64.value = data.captchaBase64;
}); // });
} // }
/** /**
* 根据组件大小调整验证码图片高度 * 根据组件大小调整验证码图片高度
*/ */
@ -289,7 +289,7 @@ function handleLogin() {
} }
onMounted(() => { onMounted(() => {
getCaptcha(); // getCaptcha();
// //
const theme = useSettingsStore().theme; const theme = useSettingsStore().theme;

View File

@ -52,9 +52,9 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
[env.VITE_APP_BASE_API]: { [env.VITE_APP_BASE_API]: {
changeOrigin: true, changeOrigin: true,
// 线上接口地址 // 线上接口地址
target: "http://vapi.youlai.tech", // target: "http://www.qihang.com",
// 开发接口地址 // 开发接口地址
//target: "http://localhost:8989", target: "http://localhost:8080",
rewrite: (path) => rewrite: (path) =>
path.replace(new RegExp("^" + env.VITE_APP_BASE_API), ""), path.replace(new RegExp("^" + env.VITE_APP_BASE_API), ""),
}, },