diff --git a/nuxt.config.ts b/nuxt.config.ts index f4df817..1009fa7 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -66,8 +66,8 @@ export default defineNuxtConfig({ // 授权信息 license: { - "name": "Apache-2.0", - "expired": 4102329600 + // "name": "Apache-2.0", + // "expired": 4102329600 } } }, diff --git a/pages/auth/login.vue b/pages/auth/login.vue index a4d6a5e..5cdd183 100644 --- a/pages/auth/login.vue +++ b/pages/auth/login.vue @@ -22,14 +22,17 @@ const sts = ref({ sessionToken: '', }) +const localConfig = configManager.loadConfig() +const serverConfigObj = new URL(localConfig?.s3.endpoint || 'http:://localhost:9000') // 服务端配置 const serverConfig = ref({ - protocol: 'http', - host: 'localhost', - port: '9000', - region: 'us-east-1' + protocol: serverConfigObj.protocol || 'http', + host: serverConfigObj.hostname || 'localhost', + port: serverConfigObj.port || '9000', + region: localConfig?.s3.region || 'us-east-1' }) + const message = useMessage() const auth = useAuth() @@ -221,8 +224,8 @@ const onUrlInput = () => { - - + + @@ -248,7 +251,7 @@ const onUrlInput = () => {
- +