Skip to content

Commit 3241f5f

Browse files
committed
feat: default remote config to first available option
1 parent 74508b5 commit 3241f5f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/views/home/SubTable.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
<div class="col-8 col-md-10">
3434
<label class="form-label" for="remote">远程配置</label>
3535
<select class="form-select" id="remote" @change="selectRemoteConfig">
36-
<option value="">默认配置</option>
3736
<option v-for="option in remoteConfigOptions" :key="option" :value="option.value">
3837
{{ option.text }}
3938
</option>
@@ -161,7 +160,7 @@ export default {
161160
},
162161
urls: [],
163162
target: 'clash',
164-
remoteConfig: '',
163+
remoteConfig: window.config.remoteConfigOptions?.[0]?.value || '',
165164
};
166165
},
167166
created() {

0 commit comments

Comments
 (0)