11<script lang="ts" setup>
2- import { OpenDir } from ' @/bridge'
2+ import { MakeDir , OpenDir } from ' @/bridge'
3+ import { RollingReleaseDirectory } from ' @/constant/app'
34import { useAppSettingsStore , useEnvStore } from ' @/stores'
45import { APP_TITLE , APP_VERSION } from ' @/utils'
56
@@ -10,6 +11,11 @@ const handleOpenFolder = async () => {
1011 await OpenDir (envStore .env .basePath )
1112}
1213
14+ const handleOpenRollingReleaseFolder = async () => {
15+ await MakeDir (RollingReleaseDirectory )
16+ await OpenDir (RollingReleaseDirectory )
17+ }
18+
1319const handleClearApiToken = () => {
1420 appSettings .app .githubApiToken = ' '
1521}
@@ -34,7 +40,10 @@ const handleClearUserAgent = () => {
3440 {{ $t('settings.rollingRelease') }}
3541 <span class =" font-normal text-12" >({{ $t('settings.needRestart') }})</span >
3642 </div >
37- <Switch v-model =" appSettings.app.rollingRelease" />
43+ <div class =" flex items-center gap-4" >
44+ <Button @click =" handleOpenRollingReleaseFolder" type =" primary" icon =" folder" size =" small" />
45+ <Switch v-model =" appSettings.app.rollingRelease" />
46+ </div >
3847 </div >
3948 <div class =" px-8 py-12 flex items-center justify-between" >
4049 <div class =" text-16 font-bold" >{{ $t('settings.realMemoryUsage') }}</div >
@@ -65,7 +74,10 @@ const handleClearUserAgent = () => {
6574 </Input >
6675 </div >
6776 <div class =" px-8 py-12 flex items-center justify-between" >
68- <div class =" text-16 font-bold" >{{ $t('settings.userAgent.name') }}</div >
77+ <div class =" text-16 font-bold" >
78+ {{ $t('settings.userAgent.name') }}
79+ <span class =" font-normal text-12" >({{ $t('settings.userAgent.tips') }})</span >
80+ </div >
6981 <Input
7082 v-model.lazy =" appSettings.app.userAgent"
7183 :placeholder =" APP_TITLE + '/' + APP_VERSION"
@@ -83,5 +95,12 @@ const handleClearUserAgent = () => {
8395 </template >
8496 </Input >
8597 </div >
98+ <div class =" px-8 py-12 flex items-center justify-between" >
99+ <div class =" text-16 font-bold" >
100+ {{ $t('settings.multipleInstance') }}
101+ <span class =" font-normal text-12" >({{ $t('settings.needRestart') }})</span >
102+ </div >
103+ <Switch v-model =" appSettings.app.multipleInstance" />
104+ </div >
86105 </Card >
87106</template >
0 commit comments