dev分支

This commit is contained in:
hubgant 2025-02-26 20:38:39 +08:00
parent e78a94bbe5
commit 6acc296210
5 changed files with 45 additions and 22 deletions

6
.env
View File

@ -20,6 +20,6 @@ VITE_APP_DOCALERT_ENABLE=true
VITE_APP_BAIDU_CODE = a1ff8825baa73c3a78eb96aa40325abc
# 默认账户密码
VITE_APP_DEFAULT_LOGIN_TENANT = 芋道源码
VITE_APP_DEFAULT_LOGIN_USERNAME = admin
VITE_APP_DEFAULT_LOGIN_PASSWORD = admin123
VITE_APP_DEFAULT_LOGIN_TENANT = 橙子联盟
VITE_APP_DEFAULT_LOGIN_USERNAME = 15068728241
VITE_APP_DEFAULT_LOGIN_PASSWORD = 123456

View File

@ -5,14 +5,14 @@ VITE_DEV=true
# 请求路径
# VITE_BASE_URL='http://localhost:48080'
VITE_BASE_URL = 'http://www.hs365.top'
VITE_BASE_URL = 'https://www.hs365.top'
# 文件上传类型server - 后端上传, client - 前端直连上传,仅支持 S3 服务
VITE_UPLOAD_TYPE=server
# 接口地址
# VITE_API_URL=/admin-api
VITE_API_URL=/api
VITE_API_URL=/admin-api
# VITE_API_URL=/api
# 是否删除debugger
VITE_DROP_DEBUGGER=true

View File

@ -72,7 +72,6 @@ export const socialAuthRedirect = (type: number, redirectUri: string) => {
}
// 获取验证图片以及 token
export const getCode = (data: any) => {
debugger
return request.postOriginal({ url: 'system/captcha/get', data })
}

View File

@ -133,7 +133,7 @@ const loginData = reactive({
},
loginForm: {
uuid: '',
tenantName: '芋道源码',
tenantName: '橙子联盟',
mobileNumber: '',
code: ''
}

View File

@ -24,20 +24,44 @@ export default ({command, mode}: ConfigEnv): UserConfig => {
base: env.VITE_BASE_PATH,
root: root,
// 服务端渲染
server: {
port: env.VITE_PORT, // 端口号
host: "0.0.0.0",
open: env.VITE_OPEN === 'true',
// 本地跨域代理. 目前注释的原因暂时没有用途server 端已经支持跨域
// proxy: {
// ['/admin-api']: {
// target: env.VITE_BASE_URL,
// ws: false,
// changeOrigin: true,
// rewrite: (path) => path.replace(new RegExp(`^/admin-api`), ''),
// },
// },
},
// server: {
// port: env.VITE_PORT, // 端口号
// host: "0.0.0.0",
// open: env.VITE_OPEN === 'true',
// // 本地跨域代理. 目前注释的原因暂时没有用途server 端已经支持跨域
// proxy: {
// ['/app-api']: {
// target: env.VITE_BASE_URL,
// ws: true,
// changeOrigin: true,
// rewrite: (path) => path.replace(new RegExp(`^/app-api`), '/admin-api'),
// bypass(req, res, options) {
// const proxyURL = options.target + options?.rewrite(req.url);
// console.log("proxyURL", proxyURL);
// req.headers["x-req-proxyURL"] = proxyURL; // 设置未生效
// res.setHeader("x-req-proxyURL", proxyURL); // 设置响应头可以看到
// },
// },
// },
// },
// server: {
// cors:true,
// // 本地跨域代理. 目前注释的原因暂时没有用途server 端已经支持跨域
// proxy: {
// ['/admin-api']: {
// target: env.VITE_BASE_URL,
// ws: true,
// changeOrigin: true,
// rewrite: (path) => path.replace(new RegExp(`^/admin-api`), '/app-api'),
// bypass(req, res, options) {
// const proxyURL = options.target + options?.rewrite(req.url);
// console.log("proxyURL", proxyURL);
// req.headers["x-req-proxyURL"] = proxyURL; // 设置未生效
// res.setHeader("x-req-proxyURL", proxyURL); // 设置响应头可以看到
// },
// },
// },
// },
// 项目使用的vite插件。 单独提取到build/vite/plugin中管理
plugins: createVitePlugins(),
css: {