mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-12-23 06:42:41 +00:00
refactor: update VLESS form to rename 'Test Seed' to 'Vision Seed' and change button functionality for seed generation
This commit is contained in:
parent
4b499c8027
commit
d7116abf69
1 changed files with 5 additions and 6 deletions
|
|
@ -71,8 +71,7 @@
|
|||
</template>
|
||||
<template v-if="inbound.settings.vlesses.some(c => c.flow === 'xtls-rprx-vision' || c.flow === 'xtls-rprx-vision-udp443')">
|
||||
<a-form :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }">
|
||||
<a-divider :style="{ margin: '5px 0' }">XTLS Vision Settings</a-divider>
|
||||
<a-form-item label="Test Seed">
|
||||
<a-form-item label="Vision Seed">
|
||||
<a-row :gutter="8">
|
||||
<a-col :span="6">
|
||||
<a-input-number v-model.number="inbound.settings.testseed[0]" :min="0" :max="9999" :style="{ width: '100%' }" placeholder="900" addon-before="[0]"></a-input-number>
|
||||
|
|
@ -88,11 +87,11 @@
|
|||
</a-col>
|
||||
</a-row>
|
||||
<a-space :size="8" :style="{ marginTop: '8px' }">
|
||||
<a-button type="primary" @click="inbound.settings.testseed = [900, 500, 900, 256]">
|
||||
Default
|
||||
<a-button type="primary" @click="inbound.settings.testseed = [Math.floor(Math.random()*1000), Math.floor(Math.random()*1000), Math.floor(Math.random()*1000), Math.floor(Math.random()*1000)]">
|
||||
Rand
|
||||
</a-button>
|
||||
<a-button @click="inbound.settings.testseed = [Math.floor(Math.random()*1000), Math.floor(Math.random()*1000), Math.floor(Math.random()*1000), Math.floor(Math.random()*1000)]">
|
||||
Random
|
||||
<a-button @click="inbound.settings.testseed = [900, 500, 900, 256]">
|
||||
Reset
|
||||
</a-button>
|
||||
</a-space>
|
||||
</a-form-item>
|
||||
|
|
|
|||
Loading…
Reference in a new issue