diff --git a/src/views/oauth/index.vue b/src/views/oauth/index.vue index 7bab60f..1c11760 100644 --- a/src/views/oauth/index.vue +++ b/src/views/oauth/index.vue @@ -58,14 +58,18 @@ + v-model="formData.client_secret" + :type="formData.id ? 'password' : 'text'" + :show-password="!formData.id" + > -
{{formData.redirect_url}}
+
{{ defaultRedirect() }} + + + +
{ - handleClipboard(formData.redirect_url, e) + handleClipboard(defaultRedirect(), e) } const listRes = reactive({ @@ -200,7 +205,7 @@ } const defaultRedirect = () => { - return `${app.setting.rustdeskConfig.api_server||window.location.origin}/api/oidc/callback` + return `${app.setting.rustdeskConfig.api_server || window.location.origin}/api/oidc/callback` } const toEdit = (row) => { @@ -211,7 +216,7 @@ formData.issuer = row.issuer formData.client_id = row.client_id formData.client_secret = row.client_secret - formData.redirect_url = row.redirect_url || defaultRedirect() + // formData.redirect_url = row.redirect_url || defaultRedirect() formData.scopes = row.scopes formData.auto_register = row.auto_register formData.pkce_enable = row.pkce_enable @@ -225,7 +230,7 @@ formData.issuer = '' formData.client_id = '' formData.client_secret = '' - formData.redirect_url = defaultRedirect() + // formData.redirect_url = defaultRedirect() formData.scopes = '' formData.auto_register = false formData.pkce_enable = false