mirror of
				https://github.com/nsnail/NetAdmin.git
				synced 2025-10-31 03:19:26 +08:00 
			
		
		
		
	chore: 🔨 喜欢就点个 Star⭐️ 吧! (#127)
This commit is contained in:
		| @@ -10,7 +10,7 @@ public sealed class PortAttribute : RangeAttribute | ||||
|     ///     Initializes a new instance of the <see cref="PortAttribute" /> class. | ||||
|     /// </summary> | ||||
|     public PortAttribute() // | ||||
|         : base(1, 65535) | ||||
|         : base(1, ushort.MaxValue) | ||||
|     { | ||||
|         ErrorMessageResourceName = nameof(Ln.无效端口号); | ||||
|         ErrorMessageResourceType = typeof(Ln); | ||||
|   | ||||
| @@ -15,7 +15,9 @@ | ||||
|             </el-col> | ||||
|         </el-form-item> | ||||
|         <el-form-item> | ||||
|             <el-button :loading="isLoading" @click="login" round style="width: 100%" type="primary">{{ $t('登录') }}</el-button> | ||||
|             <el-button :loading="isLoading" @click="login" round style="width: 100%" type="primary" | ||||
|                 >{{ starred ? $t('登录') : $t('Star 后可登录') }} | ||||
|             </el-button> | ||||
|         </el-form-item> | ||||
|         <div class="login-reg"> | ||||
|             {{ $t('还没有账号?') }} | ||||
| @@ -28,6 +30,7 @@ | ||||
| export default { | ||||
|     data() { | ||||
|         return { | ||||
|             starred: false, | ||||
|             autoLogin: false, | ||||
|             form: { | ||||
|                 account: 'root', | ||||
| @@ -50,6 +53,12 @@ export default { | ||||
|     }, | ||||
|     methods: { | ||||
|         async login() { | ||||
|             if (!this.starred) { | ||||
|                 window.open('https://github.com/nsnail/NetAdmin') | ||||
|                 this.starred = true | ||||
|                 return | ||||
|             } | ||||
|  | ||||
|             const validate = await this.$refs.loginForm.validate().catch(() => {}) | ||||
|             if (!validate) { | ||||
|                 return false | ||||
|   | ||||
| @@ -4,6 +4,7 @@ | ||||
|             <img alt="" src="@/assets/img/logo.png" /> | ||||
|             <h2>{{ packageJson.name }}</h2> | ||||
|             <p>{{ ver }}</p> | ||||
|             <el-link href="https://github.com/nsnail/NetAdmin" target="_blank">喜欢就点个 Star⭐️ 吧!</el-link> | ||||
|         </div> | ||||
|     </el-card> | ||||
| </template> | ||||
| @@ -44,9 +45,11 @@ export default { | ||||
|     justify-content: center; | ||||
|     align-items: center; | ||||
| } | ||||
|  | ||||
| .main { | ||||
|     height: 25rem; | ||||
| } | ||||
|  | ||||
| .wrap { | ||||
|     gap: 1rem; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 GitHub
						GitHub