yumeng 2 дней назад
Родитель
Сommit
6fbc077795
4 измененных файлов с 7 добавлено и 10 удалено
  1. 1 1
      .env.development
  2. 2 2
      .env.production
  3. 2 1
      package.json
  4. 2 6
      src/views/LoginView.vue

+ 1 - 1
.env.development

@@ -1,3 +1,3 @@
 VITE_PORT=5173
-VITE_PROXY_TARGET=http://localhost:9011
+VITE_PROXY_TARGET=http://localhost:9015
 VITE_API_BASE_URL=/api

+ 2 - 2
.env.production

@@ -1,3 +1,3 @@
 VITE_PORT=5173
-VITE_PROXY_TARGET=http://prod-api.example.com
-VITE_API_BASE_URL=http://prod-api.example.com/api
+VITE_PROXY_TARGET=http://127.0.0.1:9015
+VITE_API_BASE_URL=/api

+ 2 - 1
package.json

@@ -8,7 +8,8 @@
     "dev:test": "vite --mode test",
     "build": "vite build --mode production",
     "build:test": "vite build --mode test",
-    "preview": "vite preview"
+    "preview": "vite preview",
+    "deploy": "bash scripts/deploy.sh"
   },
   "dependencies": {
     "axios": "^1.7.2",

+ 2 - 6
src/views/LoginView.vue

@@ -8,10 +8,6 @@
         <p style="margin-top: 18px; color: rgba(255,255,255,0.8); line-height: 1.8">
           用于管理登录、组织架构、菜单权限,以及视频链接拆解任务。
         </p>
-        <div style="margin-top: 36px; padding: 18px; border-radius: 18px; background: rgba(255,255,255,0.08)">
-          <div>默认账号:admin / 123456</div>
-          <div style="margin-top: 8px">默认账号:operator / 123456</div>
-        </div>
       </div>
       <div style="padding: 56px 42px">
         <div style="font-size: 28px; font-weight: 700; margin-bottom: 24px">登录</div>
@@ -40,8 +36,8 @@ import { useAuthStore } from "../stores/auth";
 const router = useRouter();
 const authStore = useAuthStore();
 const form = reactive({
-  username: "admin",
-  password: "123456",
+  username: "",
+  password: "",
 });
 
 const handleLogin = async () => {