fix: 简化天河链设置项
This commit is contained in:
@@ -111,16 +111,6 @@
|
||||
<n-input v-model:value="form.tianheAppKey" type="password" show-password-on="click" class="text-control" />
|
||||
</n-form-item>
|
||||
</div>
|
||||
<div class="setting-row">
|
||||
<n-form-item :label="t('pages.settings.tianheUserId')">
|
||||
<n-input v-model:value="form.tianheUserId" class="text-control" />
|
||||
</n-form-item>
|
||||
</div>
|
||||
<div class="setting-row">
|
||||
<n-form-item :label="t('pages.settings.tianheUserKey')">
|
||||
<n-input v-model:value="form.tianheUserKey" type="password" show-password-on="click" class="text-control" />
|
||||
</n-form-item>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</n-form>
|
||||
@@ -184,8 +174,6 @@ const form = reactive({
|
||||
tianheBaseUrl: TIANHE_TEST_URL,
|
||||
tianheAppId: '',
|
||||
tianheAppKey: '',
|
||||
tianheUserId: '',
|
||||
tianheUserKey: '',
|
||||
});
|
||||
|
||||
async function load() {
|
||||
@@ -207,8 +195,6 @@ async function load() {
|
||||
form.tianheBaseUrl = s.tianheBaseUrl || TIANHE_TEST_URL;
|
||||
form.tianheAppId = s.tianheAppId || '';
|
||||
form.tianheAppKey = s.tianheAppKey || '';
|
||||
form.tianheUserId = s.tianheUserId || '';
|
||||
form.tianheUserKey = s.tianheUserKey || '';
|
||||
}
|
||||
|
||||
function onTianheEnvChange(value: string) {
|
||||
@@ -237,8 +223,6 @@ async function save() {
|
||||
tianheBaseUrl: form.tianheBaseUrl,
|
||||
tianheAppId: form.tianheAppId,
|
||||
tianheAppKey: form.tianheAppKey,
|
||||
tianheUserId: form.tianheUserId,
|
||||
tianheUserKey: form.tianheUserKey,
|
||||
});
|
||||
setFavicon(appIconUrl);
|
||||
window.dispatchEvent(new CustomEvent('artveris-settings-updated'));
|
||||
|
||||
Reference in New Issue
Block a user