瀏覽代碼

生产环境不显示密码

shmily1213 1 月之前
父節點
當前提交
a20398a696
共有 1 個文件被更改,包括 7 次插入2 次删除
  1. 7 2
      back-ui/src/views/login.vue

+ 7 - 2
back-ui/src/views/login.vue

@@ -77,8 +77,8 @@ const router = useRouter()
 const { proxy } = getCurrentInstance()
 
 const loginForm = ref({
-  username: "admin",
-  password: "admin123",
+  username: "",
+  password: "",
   rememberMe: false,
   code: "",
   uuid: ""
@@ -161,6 +161,11 @@ function getCookie() {
 
 getCode()
 getCookie()
+
+if (import.meta.env.DEV) {
+  loginForm.value.username = "admin"
+  loginForm.value.password = "admin123"
+}
 </script>
 
 <style lang='scss' scoped>