From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001
From: wwf <yearningwang@iqtogether.com>
Date: 星期三, 04 六月 2025 15:17:49 +0800
Subject: [PATCH] 初始化

---
 app/init/InitPasswordPopup.tsx |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/app/init/InitPasswordPopup.tsx b/app/init/InitPasswordPopup.tsx
index 694a45e..cbf25f4 100644
--- a/app/init/InitPasswordPopup.tsx
+++ b/app/init/InitPasswordPopup.tsx
@@ -5,7 +5,6 @@
 import Toast from '../components/base/toast'
 import Loading from '../components/base/loading'
 import Button from '@/app/components/base/button'
-import { WEB_PREFIX } from '@/config'
 import { fetchInitValidateStatus, initValidate } from '@/service/common'
 import type { InitValidateStatusResponse } from '@/models/common'
 
@@ -42,7 +41,7 @@
   useEffect(() => {
     fetchInitValidateStatus().then((res: InitValidateStatusResponse) => {
       if (res.status === 'finished')
-        window.location.href = `${WEB_PREFIX}/install`
+        window.location.href = '/install'
       else
         setLoading(false)
     })
@@ -53,24 +52,24 @@
       ? <Loading />
       : <div>
         {!validated && (
-          <div className="mx-12 block min-w-28">
+          <div className="block mx-12 min-w-28">
             <div className="mb-4">
-              <label htmlFor="password" className="block text-sm font-medium text-text-secondary">
+              <label htmlFor="password" className="block text-sm font-medium text-gray-700">
                 {t('login.adminInitPassword')}
 
               </label>
-              <div className="relative mt-1 rounded-md shadow-sm">
+              <div className="mt-1 relative rounded-md shadow-sm">
                 <input
                   id="password"
                   type="password"
                   value={password}
                   onChange={e => setPassword(e.target.value)}
-                  className="block w-full appearance-none rounded-md border border-divider-regular px-3 py-2 shadow-sm placeholder:text-text-quaternary focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm"
+                  className="appearance-none block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
                 />
               </div>
             </div>
             <div className="flex flex-row flex-wrap justify-stretch p-0">
-              <Button variant="primary" onClick={handleValidation} className="min-w-28 basis-full">
+              <Button variant="primary" onClick={handleValidation} className="basis-full min-w-28">
                 {t('login.validate')}
               </Button>
             </div>

--
Gitblit v1.8.0