mirror of
				https://github.com/continew-org/continew-admin.git
				synced 2025-10-31 00:57:13 +08:00 
			
		
		
		
	chore: 优化初始参数数据
This commit is contained in:
		| @@ -4,7 +4,7 @@ | |||||||
|     <meta charset="UTF-8" /> |     <meta charset="UTF-8" /> | ||||||
|     <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico"> |     <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" /> |     <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> |   </head> | ||||||
|   <body> |   <body> | ||||||
|     <div id="app"></div> |     <div id="app"></div> | ||||||
|   | |||||||
| @@ -2,7 +2,7 @@ | |||||||
|   <div class="navbar"> |   <div class="navbar"> | ||||||
|     <div class="left-side"> |     <div class="left-side"> | ||||||
|       <a-space> |       <a-space> | ||||||
|         <img alt="logo" :src="getFile(appStore.getLogo)" height="33"/> |         <img alt="logo" :src="getFile(appStore.getLogo)" height="33" /> | ||||||
|         <a-typography-title |         <a-typography-title | ||||||
|           :style="{ margin: 0, fontSize: '18px' }" |           :style="{ margin: 0, fontSize: '18px' }" | ||||||
|           :heading="5" |           :heading="5" | ||||||
|   | |||||||
| @@ -146,7 +146,7 @@ const useAppStore = defineStore('app', { | |||||||
|      * @param config 系统配置 |      * @param config 系统配置 | ||||||
|      */ |      */ | ||||||
|     save(config: Config) { |     save(config: Config) { | ||||||
|       this.$state.config = config; |       this.config = config; | ||||||
|       document.title = config.site_title || ''; |       document.title = config.site_title || ''; | ||||||
|       document |       document | ||||||
|         .querySelector('link[rel="shortcut icon"]') |         .querySelector('link[rel="shortcut icon"]') | ||||||
|   | |||||||
| @@ -1,7 +1,6 @@ | |||||||
| <template> | <template> | ||||||
|   <div class="login-form-wrapper"> |   <div class="login-form-wrapper"> | ||||||
|     <div class="login-form-title">登录 {{ appStore.getTitle }}</div> |     <div class="login-form-title">登录 {{ appStore.getTitle }}</div> | ||||||
|     <div class="login-form-sub-title">{{ $t('login.form.subTitle') }}</div> |  | ||||||
|     <a-form |     <a-form | ||||||
|       ref="formRef" |       ref="formRef" | ||||||
|       :model="form" |       :model="form" | ||||||
|   | |||||||
| @@ -1,8 +1,4 @@ | |||||||
| export default { | 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.username': 'Please enter username', | ||||||
|   'login.form.placeholder.password': 'Please enter password', |   'login.form.placeholder.password': 'Please enter password', | ||||||
|   'login.form.placeholder.captcha': 'Please enter captcha', |   'login.form.placeholder.captcha': 'Please enter captcha', | ||||||
|   | |||||||
| @@ -1,7 +1,4 @@ | |||||||
| export default { | export default { | ||||||
|   'login.form.title': '登录 ContiNew Admin', |  | ||||||
|   'login.form.subTitle': '持续以最新流行技术栈构建的中后台管理框架', |  | ||||||
|  |  | ||||||
|   'login.form.placeholder.username': '请输入用户名', |   'login.form.placeholder.username': '请输入用户名', | ||||||
|   'login.form.placeholder.password': '请输入密码', |   'login.form.placeholder.password': '请输入密码', | ||||||
|   'login.form.placeholder.captcha': '请输入验证码', |   'login.form.placeholder.captcha': '请输入验证码', | ||||||
|   | |||||||
| @@ -102,14 +102,26 @@ | |||||||
|           :label="siteTitle?.name" |           :label="siteTitle?.name" | ||||||
|           field="site_title" |           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> | ||||||
|         <a-form-item |         <a-form-item | ||||||
|           class="input-item" |           class="input-item" | ||||||
|           :label="siteCopyright?.name" |           :label="siteCopyright?.name" | ||||||
|           field="site_copyright" |           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> |         </a-form-item> | ||||||
|         <div style="margin-top: 20px"> |         <div style="margin-top: 20px"> | ||||||
|           <a-space> |           <a-space> | ||||||
| @@ -391,10 +403,10 @@ | |||||||
|  |  | ||||||
| <style scoped lang="less"> | <style scoped lang="less"> | ||||||
|   .logo { |   .logo { | ||||||
|     width: 48px; |     width: 33px; | ||||||
|     height: 48px; |     height: 33px; | ||||||
|     min-width: 48px; |     min-width: 33px; | ||||||
|     line-height: 48px; |     line-height: 33px; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   .favicon { |   .favicon { | ||||||
|   | |||||||
| @@ -32,6 +32,11 @@ INSERT IGNORE INTO `sys_option` | |||||||
| (`name`, `code`, `value`, `default_value`, `description`, `update_user`, `update_time`) | (`name`, `code`, `value`, `default_value`, `description`, `update_user`, `update_time`) | ||||||
| VALUES | VALUES | ||||||
| ('系统标题', 'site_title', NULL, 'ContiNew Admin', '用于显示登录页面的系统标题。', NULL, NULL), | ('系统标题', '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), | ||||||
| ('系统LOGO(16*16)', 'site_favicon', NULL, 'https://cnadmin.charles7c.top/favicon.ico', '用于显示浏览器地址栏的系统LOGO。', NULL, NULL), | ('系统LOGO(16*16)', 'site_favicon', NULL, 'https://cnadmin.charles7c.top/favicon.ico', '用于显示浏览器地址栏的系统LOGO。', NULL, NULL), | ||||||
| ('系统LOGO(48*48)', 'site_logo', NULL, 'https://cnadmin.charles7c.top/logo.svg', '用于显示登录页面的系统LOGO。', NULL, NULL); | ('系统LOGO(33*33)', 'site_logo', NULL, 'https://cnadmin.charles7c.top/logo.svg', '用于显示登录页面的系统LOGO。', NULL, NULL); | ||||||
		Reference in New Issue
	
	Block a user