update: 配置修改
parent
c79f027d62
commit
387457f5a2
6
.env
6
.env
|
|
@ -1,5 +1,5 @@
|
||||||
# 标题
|
# 标题
|
||||||
VITE_APP_TITLE=芋道管理系统
|
VITE_APP_TITLE=明洋制造管理系统
|
||||||
|
|
||||||
# 项目本地运行端口号
|
# 项目本地运行端口号
|
||||||
VITE_PORT=80
|
VITE_PORT=80
|
||||||
|
|
@ -14,12 +14,12 @@ VITE_APP_TENANT_ENABLE=true
|
||||||
VITE_APP_CAPTCHA_ENABLE=true
|
VITE_APP_CAPTCHA_ENABLE=true
|
||||||
|
|
||||||
# 文档地址的开关
|
# 文档地址的开关
|
||||||
VITE_APP_DOCALERT_ENABLE=true
|
VITE_APP_DOCALERT_ENABLE=false
|
||||||
|
|
||||||
# 百度统计
|
# 百度统计
|
||||||
VITE_APP_BAIDU_CODE = a1ff8825baa73c3a78eb96aa40325abc
|
VITE_APP_BAIDU_CODE = a1ff8825baa73c3a78eb96aa40325abc
|
||||||
|
|
||||||
# 默认账户密码
|
# 默认账户密码
|
||||||
VITE_APP_DEFAULT_LOGIN_TENANT = 芋道源码
|
VITE_APP_DEFAULT_LOGIN_TENANT = 明洋制造
|
||||||
VITE_APP_DEFAULT_LOGIN_USERNAME = admin
|
VITE_APP_DEFAULT_LOGIN_USERNAME = admin
|
||||||
VITE_APP_DEFAULT_LOGIN_PASSWORD = admin123
|
VITE_APP_DEFAULT_LOGIN_PASSWORD = admin123
|
||||||
|
|
|
||||||
12621
pnpm-lock.yaml
12621
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
|
@ -159,10 +159,7 @@ service.interceptors.response.use(
|
||||||
'<div>' +
|
'<div>' +
|
||||||
t('sys.api.errMsg901') +
|
t('sys.api.errMsg901') +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'<div> </div>' +
|
'<div> </div>'
|
||||||
'<div>参考 https://doc.iocoder.cn/ 教程</div>' +
|
|
||||||
'<div> </div>' +
|
|
||||||
'<div>5 分钟搭建本地环境</div>'
|
|
||||||
})
|
})
|
||||||
return Promise.reject(new Error(msg))
|
return Promise.reject(new Error(msg))
|
||||||
} else if (code !== 200) {
|
} else if (code !== 200) {
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,8 @@ const title = computed(() => appStore.getTitle)
|
||||||
:class="prefixCls"
|
:class="prefixCls"
|
||||||
class="h-[var(--app-footer-height)] bg-[var(--app-content-bg-color)] text-center leading-[var(--app-footer-height)] text-[var(--el-text-color-placeholder)] dark:bg-[var(--el-bg-color)] overflow-hidden"
|
class="h-[var(--app-footer-height)] bg-[var(--app-content-bg-color)] text-center leading-[var(--app-footer-height)] text-[var(--el-text-color-placeholder)] dark:bg-[var(--el-bg-color)] overflow-hidden"
|
||||||
>
|
>
|
||||||
<span class="text-14px">Copyright ©2022-{{ title }}</span>
|
<span class="text-14px">
|
||||||
|
©2024 明洋智造 | <a href="https://beian.miit.gov.cn/" target="_blank">浙ICP备2024101227号</a>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ export const useAppStore = defineStore('app', {
|
||||||
tagsViewIcon: true, // 是否显示标签图标
|
tagsViewIcon: true, // 是否显示标签图标
|
||||||
logo: true, // logo
|
logo: true, // logo
|
||||||
fixedHeader: true, // 固定toolheader
|
fixedHeader: true, // 固定toolheader
|
||||||
footer: true, // 显示页脚
|
footer: false, // 显示页脚
|
||||||
greyMode: false, // 是否开始灰色模式,用于特殊悼念日
|
greyMode: false, // 是否开始灰色模式,用于特殊悼念日
|
||||||
fixedMenu: wsCache.get('fixedMenu') || false, // 是否固定菜单
|
fixedMenu: wsCache.get('fixedMenu') || false, // 是否固定菜单
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -210,48 +210,6 @@ const getCount = async () => {
|
||||||
let projects = reactive<Project[]>([])
|
let projects = reactive<Project[]>([])
|
||||||
const getProject = async () => {
|
const getProject = async () => {
|
||||||
const data = [
|
const data = [
|
||||||
{
|
|
||||||
name: 'ruoyi-vue-pro',
|
|
||||||
icon: 'akar-icons:github-fill',
|
|
||||||
message: 'https://github.com/YunaiV/ruoyi-vue-pro',
|
|
||||||
personal: 'Spring Boot 单体架构',
|
|
||||||
time: new Date()
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'yudao-ui-admin-vue3',
|
|
||||||
icon: 'logos:vue',
|
|
||||||
message: 'https://github.com/yudaocode/yudao-ui-admin-vue3',
|
|
||||||
personal: 'Vue3 + element-plus',
|
|
||||||
time: new Date()
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'yudao-ui-admin-vben',
|
|
||||||
icon: 'logos:vue',
|
|
||||||
message: 'https://github.com/yudaocode/yudao-ui-admin-vben',
|
|
||||||
personal: 'Vue3 + vben(antd)',
|
|
||||||
time: new Date()
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'yudao-cloud',
|
|
||||||
icon: 'akar-icons:github',
|
|
||||||
message: 'https://github.com/YunaiV/yudao-cloud',
|
|
||||||
personal: 'Spring Cloud 微服务架构',
|
|
||||||
time: new Date()
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'yudao-ui-mall-uniapp',
|
|
||||||
icon: 'logos:vue',
|
|
||||||
message: 'https://github.com/yudaocode/yudao-ui-admin-uniapp',
|
|
||||||
personal: 'Vue3 + uniapp',
|
|
||||||
time: new Date()
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'yudao-ui-admin-vue2',
|
|
||||||
icon: 'logos:vue',
|
|
||||||
message: 'https://github.com/yudaocode/yudao-ui-admin-vue2',
|
|
||||||
personal: 'Vue2 + element-ui',
|
|
||||||
time: new Date()
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
projects = Object.assign(projects, data)
|
projects = Object.assign(projects, data)
|
||||||
}
|
}
|
||||||
|
|
@ -260,30 +218,6 @@ const getProject = async () => {
|
||||||
let notice = reactive<Notice[]>([])
|
let notice = reactive<Notice[]>([])
|
||||||
const getNotice = async () => {
|
const getNotice = async () => {
|
||||||
const data = [
|
const data = [
|
||||||
{
|
|
||||||
title: '系统支持 JDK 8/17/21,Vue 2/3',
|
|
||||||
type: '通知',
|
|
||||||
keys: ['通知', '8', '17', '21', '2', '3'],
|
|
||||||
date: new Date()
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '后端提供 Spring Boot 2.7/3.2 + Cloud 双架构',
|
|
||||||
type: '公告',
|
|
||||||
keys: ['公告', 'Boot', 'Cloud'],
|
|
||||||
date: new Date()
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '全部开源,个人与企业可 100% 直接使用,无需授权',
|
|
||||||
type: '通知',
|
|
||||||
keys: ['通知', '无需授权'],
|
|
||||||
date: new Date()
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '国内使用最广泛的快速开发平台,超 300+ 人贡献',
|
|
||||||
type: '公告',
|
|
||||||
keys: ['公告', '最广泛'],
|
|
||||||
date: new Date()
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
notice = Object.assign(notice, data)
|
notice = Object.assign(notice, data)
|
||||||
}
|
}
|
||||||
|
|
@ -293,36 +227,6 @@ let shortcut = reactive<Shortcut[]>([])
|
||||||
|
|
||||||
const getShortcut = async () => {
|
const getShortcut = async () => {
|
||||||
const data = [
|
const data = [
|
||||||
{
|
|
||||||
name: 'Github',
|
|
||||||
icon: 'akar-icons:github-fill',
|
|
||||||
url: 'github.io'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'Vue',
|
|
||||||
icon: 'logos:vue',
|
|
||||||
url: 'vuejs.org'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'Vite',
|
|
||||||
icon: 'vscode-icons:file-type-vite',
|
|
||||||
url: 'https://vitejs.dev/'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'Angular',
|
|
||||||
icon: 'logos:angular-icon',
|
|
||||||
url: 'github.io'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'React',
|
|
||||||
icon: 'logos:react',
|
|
||||||
url: 'github.io'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'Webpack',
|
|
||||||
icon: 'logos:webpack',
|
|
||||||
url: 'github.io'
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
shortcut = Object.assign(shortcut, data)
|
shortcut = Object.assign(shortcut, data)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,10 +20,10 @@
|
||||||
tag="div"
|
tag="div"
|
||||||
>
|
>
|
||||||
<img key="1" alt="" class="w-350px" src="@/assets/svgs/login-box-bg.svg" />
|
<img key="1" alt="" class="w-350px" src="@/assets/svgs/login-box-bg.svg" />
|
||||||
<div key="2" class="text-3xl text-white">{{ t('login.welcome') }}</div>
|
<!-- <div key="2" class="text-3xl text-white">{{ t('login.welcome') }}</div>
|
||||||
<div key="3" class="mt-5 text-14px font-normal text-white">
|
<div key="3" class="mt-5 text-14px font-normal text-white">
|
||||||
{{ t('login.message') }}
|
{{ t('login.message') }}
|
||||||
</div>
|
</div> -->
|
||||||
</TransitionGroup>
|
</TransitionGroup>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -52,15 +52,16 @@
|
||||||
<!-- 账号登录 -->
|
<!-- 账号登录 -->
|
||||||
<LoginForm class="m-auto h-auto p-20px lt-xl:(rounded-3xl light:bg-white)" />
|
<LoginForm class="m-auto h-auto p-20px lt-xl:(rounded-3xl light:bg-white)" />
|
||||||
<!-- 手机登录 -->
|
<!-- 手机登录 -->
|
||||||
<MobileForm class="m-auto h-auto p-20px lt-xl:(rounded-3xl light:bg-white)" />
|
<!-- <MobileForm class="m-auto h-auto p-20px lt-xl:(rounded-3xl light:bg-white)" /> -->
|
||||||
<!-- 二维码登录 -->
|
<!-- 二维码登录 -->
|
||||||
<QrCodeForm class="m-auto h-auto p-20px lt-xl:(rounded-3xl light:bg-white)" />
|
<!-- <QrCodeForm class="m-auto h-auto p-20px lt-xl:(rounded-3xl light:bg-white)" /> -->
|
||||||
<!-- 注册 -->
|
<!-- 注册 -->
|
||||||
<RegisterForm class="m-auto h-auto p-20px lt-xl:(rounded-3xl light:bg-white)" />
|
<!-- <RegisterForm class="m-auto h-auto p-20px lt-xl:(rounded-3xl light:bg-white)" /> -->
|
||||||
<!-- 三方登录 -->
|
<!-- 三方登录 -->
|
||||||
<SSOLoginVue class="m-auto h-auto p-20px lt-xl:(rounded-3xl light:bg-white)" />
|
<!-- <SSOLoginVue class="m-auto h-auto p-20px lt-xl:(rounded-3xl light:bg-white)" /> -->
|
||||||
</div>
|
</div>
|
||||||
</Transition>
|
</Transition>
|
||||||
|
<Copyright/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -73,7 +74,7 @@ import { useAppStore } from '@/store/modules/app'
|
||||||
import { ThemeSwitch } from '@/layout/components/ThemeSwitch'
|
import { ThemeSwitch } from '@/layout/components/ThemeSwitch'
|
||||||
import { LocaleDropdown } from '@/layout/components/LocaleDropdown'
|
import { LocaleDropdown } from '@/layout/components/LocaleDropdown'
|
||||||
|
|
||||||
import { LoginForm, MobileForm, QrCodeForm, RegisterForm, SSOLoginVue } from './components'
|
import { LoginForm, MobileForm, QrCodeForm, RegisterForm, SSOLoginVue, Copyright } from './components'
|
||||||
|
|
||||||
defineOptions({ name: 'Login' })
|
defineOptions({ name: 'Login' })
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
<template>
|
||||||
|
<el-divider
|
||||||
|
content-position="center"
|
||||||
|
>
|
||||||
|
©2024 明洋智造 | <a href="https://beian.miit.gov.cn/" target="_blank">浙ICP备2024101227号</a>
|
||||||
|
</el-divider>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" setup>
|
||||||
|
|
||||||
|
defineOptions({ name: 'Copyright' })
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.el-divider {
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
@ -58,9 +58,9 @@
|
||||||
{{ t('login.remember') }}
|
{{ t('login.remember') }}
|
||||||
</el-checkbox>
|
</el-checkbox>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :offset="6" :span="12">
|
<!-- <el-col :offset="6" :span="12">
|
||||||
<el-link style="float: right" type="primary">{{ t('login.forgetPassword') }}</el-link>
|
<el-link style="float: right" type="primary">{{ t('login.forgetPassword') }}</el-link>
|
||||||
</el-col>
|
</el-col> -->
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
@ -82,7 +82,7 @@
|
||||||
mode="pop"
|
mode="pop"
|
||||||
@success="handleLogin"
|
@success="handleLogin"
|
||||||
/>
|
/>
|
||||||
<el-col :span="24" style="padding-right: 10px; padding-left: 10px">
|
<!-- <el-col :span="24" style="padding-right: 10px; padding-left: 10px">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-row :gutter="5" justify="space-between" style="width: 100%">
|
<el-row :gutter="5" justify="space-between" style="width: 100%">
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
|
|
@ -108,9 +108,9 @@
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col> -->
|
||||||
<el-divider content-position="center">{{ t('login.otherLogin') }}</el-divider>
|
<!-- <el-divider content-position="center">{{ t('login.otherLogin') }}</el-divider> -->
|
||||||
<el-col :span="24" style="padding-right: 10px; padding-left: 10px">
|
<!-- <el-col :span="24" style="padding-right: 10px; padding-left: 10px">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<div class="w-[100%] flex justify-between">
|
<div class="w-[100%] flex justify-between">
|
||||||
<Icon
|
<Icon
|
||||||
|
|
@ -124,8 +124,8 @@
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col> -->
|
||||||
<el-divider content-position="center">萌新必读</el-divider>
|
<!-- <el-divider content-position="center">萌新必读</el-divider>
|
||||||
<el-col :span="24" style="padding-right: 10px; padding-left: 10px">
|
<el-col :span="24" style="padding-right: 10px; padding-left: 10px">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<div class="w-[100%] flex justify-between">
|
<div class="w-[100%] flex justify-between">
|
||||||
|
|
@ -139,7 +139,7 @@
|
||||||
</el-link>
|
</el-link>
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col> -->
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -4,5 +4,6 @@ import LoginFormTitle from './LoginFormTitle.vue'
|
||||||
import RegisterForm from './RegisterForm.vue'
|
import RegisterForm from './RegisterForm.vue'
|
||||||
import QrCodeForm from './QrCodeForm.vue'
|
import QrCodeForm from './QrCodeForm.vue'
|
||||||
import SSOLoginVue from './SSOLogin.vue'
|
import SSOLoginVue from './SSOLogin.vue'
|
||||||
|
import Copyright from './Copyright.vue'
|
||||||
|
|
||||||
export { LoginForm, MobileForm, LoginFormTitle, RegisterForm, QrCodeForm, SSOLoginVue }
|
export { LoginForm, MobileForm, LoginFormTitle, RegisterForm, QrCodeForm, SSOLoginVue, Copyright }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue