chore: 优化初始参数数据

This commit is contained in:
Charles7c 2023-09-23 20:46:32 +08:00
parent 6013211a09
commit d1288a0c4f
8 changed files with 28 additions and 19 deletions

View File

@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>ContiNew Admin - 持续以最新流行技术栈构建的中后台管理框架</title>
<title></title>
</head>
<body>
<div id="app"></div>

View File

@ -2,7 +2,7 @@
<div class="navbar">
<div class="left-side">
<a-space>
<img alt="logo" :src="getFile(appStore.getLogo)" height="33"/>
<img alt="logo" :src="getFile(appStore.getLogo)" height="33" />
<a-typography-title
:style="{ margin: 0, fontSize: '18px' }"
:heading="5"

View File

@ -146,7 +146,7 @@ const useAppStore = defineStore('app', {
* @param config
*/
save(config: Config) {
this.$state.config = config;
this.config = config;
document.title = config.site_title || '';
document
.querySelector('link[rel="shortcut icon"]')

View File

@ -1,7 +1,6 @@
<template>
<div class="login-form-wrapper">
<div class="login-form-title">登录 {{ appStore.getTitle }}</div>
<div class="login-form-sub-title">{{ $t('login.form.subTitle') }}</div>
<a-form
ref="formRef"
:model="form"

View File

@ -1,8 +1,4 @@
export default {
'login.form.title': 'Login to ContiNew Admin',
'login.form.subTitle':
'Continue to build the latest popular technology stack in the background management framework',
'login.form.placeholder.username': 'Please enter username',
'login.form.placeholder.password': 'Please enter password',
'login.form.placeholder.captcha': 'Please enter captcha',

View File

@ -1,7 +1,4 @@
export default {
'login.form.title': '登录 ContiNew Admin',
'login.form.subTitle': '持续以最新流行技术栈构建的中后台管理框架',
'login.form.placeholder.username': '请输入用户名',
'login.form.placeholder.password': '请输入密码',
'login.form.placeholder.captcha': '请输入验证码',

View File

@ -102,14 +102,26 @@
:label="siteTitle?.name"
field="site_title"
>
<a-input v-model="form.site_title" placeholder="请输入网站标题" />
<a-input
v-model="form.site_title"
placeholder="请输入网站标题"
:max-length="18"
/>
</a-form-item>
<a-form-item
class="input-item"
:label="siteCopyright?.name"
field="site_copyright"
tooltip="支持HTML标签"
>
<a-input v-model="form.site_copyright" placeholder="请输入版权信息" />
<a-textarea
v-model="form.site_copyright"
placeholder="请输入版权信息"
:auto-size="{
minRows: 3,
}"
show-word-limit
/>
</a-form-item>
<div style="margin-top: 20px">
<a-space>
@ -391,10 +403,10 @@
<style scoped lang="less">
.logo {
width: 48px;
height: 48px;
min-width: 48px;
line-height: 48px;
width: 33px;
height: 33px;
min-width: 33px;
line-height: 33px;
}
.favicon {

View File

@ -32,6 +32,11 @@ INSERT IGNORE INTO `sys_option`
(`name`, `code`, `value`, `default_value`, `description`, `update_user`, `update_time`)
VALUES
('系统标题', 'site_title', NULL, 'ContiNew Admin', '用于显示登录页面的系统标题。', NULL, NULL),
('版权信息', 'site_copyright', NULL, 'Copyright © 2022-2023 Charles7c ⋅ ContiNew Admin ⋅ 津ICP备2022005864号-2', '用于显示登录页面的底部版权信息。', NULL, NULL),
('版权信息', 'site_copyright', NULL, 'Copyright © 2022-present
<a href="https://blog.charles7c.top/about/me" target="_blank" rel="noopener" style="text-decoration: none; color: rgb(78,89,105)">Charles7c</a>
<span></span>
<a href="https://github.com/Charles7c/continew-admin" target="_blank" rel="noopener" style="text-decoration: none; color: rgb(78,89,105)">ContiNew Admin</a>
<span></span>
<a href="https://beian.miit.gov.cn" target="_blank" rel="noopener" style="text-decoration: none; color: rgb(78,89,105)">ICP备2022005864号-2</a>', '', NULL, NULL),
('系统LOGO16*16', 'site_favicon', NULL, 'https://cnadmin.charles7c.top/favicon.ico', '用于显示浏览器地址栏的系统LOGO。', NULL, NULL),
('系统LOGO48*48', 'site_logo', NULL, 'https://cnadmin.charles7c.top/logo.svg', '用于显示登录页面的系统LOGO。', NULL, NULL);
('系统LOGO33*33', 'site_logo', NULL, 'https://cnadmin.charles7c.top/logo.svg', '用于显示登录页面的系统LOGO。', NULL, NULL);