diff --git a/ui/src/api/admin/auth/types.ts b/ui/src/api/admin/auth/types.ts index 285ba2b2c53..931ce914f94 100644 --- a/ui/src/api/admin/auth/types.ts +++ b/ui/src/api/admin/auth/types.ts @@ -18,7 +18,7 @@ export interface CurrentUserInfo { export interface LoginRequest { username: string - password: string + password?: string captcha?: string encryptedData?: string } diff --git a/ui/src/assets/iconfont.js b/ui/src/assets/iconfont.js index dfdbbdc8b34..70f8ab09a2d 100644 --- a/ui/src/assets/iconfont.js +++ b/ui/src/assets/iconfont.js @@ -1 +1 @@ -window._iconfont_svg_string_5200172='',(l=>{var a=(h=(h=document.getElementsByTagName("script"))[h.length-1]).getAttribute("data-injectcss"),h=h.getAttribute("data-disable-injectsvg");if(!h){var v,t,o,i,e,c=function(a,h){h.parentNode.insertBefore(a,h)};if(a&&!l.__iconfont__svg__cssinject__){l.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(a){console&&console.log(a)}}v=function(){var a,h=document.createElement("div");h.innerHTML=l._iconfont_svg_string_5200172,(h=h.getElementsByTagName("svg")[0])&&(h.setAttribute("aria-hidden","true"),h.style.position="absolute",h.style.width=0,h.style.height=0,h.style.overflow="hidden",h=h,(a=document.body).firstChild?c(h,a.firstChild):a.appendChild(h))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(v,0):(t=function(){document.removeEventListener("DOMContentLoaded",t,!1),v()},document.addEventListener("DOMContentLoaded",t,!1)):document.attachEvent&&(o=v,i=l.document,e=!1,m(),i.onreadystatechange=function(){"complete"==i.readyState&&(i.onreadystatechange=null,d())})}function d(){e||(e=!0,o())}function m(){try{i.documentElement.doScroll("left")}catch(a){return void setTimeout(m,50)}d()}})(window); \ No newline at end of file +window._iconfont_svg_string_5200172='',(l=>{var a=(h=(h=document.getElementsByTagName("script"))[h.length-1]).getAttribute("data-injectcss"),h=h.getAttribute("data-disable-injectsvg");if(!h){var v,t,o,i,c,e=function(a,h){h.parentNode.insertBefore(a,h)};if(a&&!l.__iconfont__svg__cssinject__){l.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(a){console&&console.log(a)}}v=function(){var a,h=document.createElement("div");h.innerHTML=l._iconfont_svg_string_5200172,(h=h.getElementsByTagName("svg")[0])&&(h.setAttribute("aria-hidden","true"),h.style.position="absolute",h.style.width=0,h.style.height=0,h.style.overflow="hidden",h=h,(a=document.body).firstChild?e(h,a.firstChild):a.appendChild(h))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(v,0):(t=function(){document.removeEventListener("DOMContentLoaded",t,!1),v()},document.addEventListener("DOMContentLoaded",t,!1)):document.attachEvent&&(o=v,i=l.document,c=!1,m(),i.onreadystatechange=function(){"complete"==i.readyState&&(i.onreadystatechange=null,d())})}function d(){c||(c=!0,o())}function m(){try{i.documentElement.doScroll("left")}catch(a){return void setTimeout(m,50)}d()}})(window); \ No newline at end of file diff --git a/ui/src/components/global/mk-view-layout/index.vue b/ui/src/components/global/mk-view-layout/index.vue index 3b181cfeac5..2d0ebf8dd2b 100644 --- a/ui/src/components/global/mk-view-layout/index.vue +++ b/ui/src/components/global/mk-view-layout/index.vue @@ -65,7 +65,7 @@ const LayoutContent: FunctionalComponent = () => { -
+
diff --git a/ui/src/layout/LayoutHeader.vue b/ui/src/layout/LayoutHeader.vue index 1c52c83f040..2a9dc50d6f8 100644 --- a/ui/src/layout/LayoutHeader.vue +++ b/ui/src/layout/LayoutHeader.vue @@ -1,7 +1,6 @@ diff --git a/ui/src/views/system/settings/authentication/AuthenticationSettingsView.vue b/ui/src/views/system/settings/authentication/AuthenticationSettingsView.vue index 9ee439b59eb..a033a7a3b03 100644 --- a/ui/src/views/system/settings/authentication/AuthenticationSettingsView.vue +++ b/ui/src/views/system/settings/authentication/AuthenticationSettingsView.vue @@ -28,10 +28,15 @@ const authenticationTabs: AuthenticationTab[] = [ diff --git a/ui/vite.config.ts b/ui/vite.config.ts index 63c8af269fe..2c6949be78f 100644 --- a/ui/vite.config.ts +++ b/ui/vite.config.ts @@ -10,7 +10,7 @@ import AutoImport from 'unplugin-auto-import/vite' import Components from 'unplugin-vue-components/vite' const envDir = './env' -const defaultBackendTarget = 'https://mk-ee.fit2cloud.cn/' +const defaultBackendTarget = 'http://localhost:3000' const projectRoot = fileURLToPath(new URL('.', import.meta.url)) const renameHtmlPlugin = (outDir: string, entry: string) => {