@@ -4,11 +4,15 @@ import {onMounted, ref} from "vue";
44
55const basic = ref ({
66 adbPath: null as string | null ,
7+ adbPathDefault: null as string | null ,
78 scrcpyPath: null as string | null ,
9+ scrcpyPathDefault: null as string | null ,
810});
911const doLoad = async () => {
10- basic .value .adbPath = await $mapi .adb .getBinPath ();
11- basic .value .scrcpyPath = await $mapi .scrcpy .getBinPath ();
12+ basic .value .adbPath = await $mapi .adb .getBinPath (true );
13+ basic .value .adbPathDefault = await $mapi .adb .getBinPath ();
14+ basic .value .scrcpyPath = await $mapi .scrcpy .getBinPath (true );
15+ basic .value .scrcpyPathDefault = await $mapi .scrcpy .getBinPath ();
1216};
1317
1418onMounted (doLoad );
@@ -38,7 +42,9 @@ const doSelectScrcpyPath = async () => {
3842<template >
3943 <a-form :model =" {}" layout =" vertical" >
4044 <a-form-item field =" name" :label =" t('adb路径')" >
41- <a-input @change =" doAdbPathChange" v-model =" basic.adbPath as string" >
45+ <a-input @change =" doAdbPathChange"
46+ :placeholder =" basic.adbPathDefault"
47+ v-model =" basic.adbPath as string" >
4248 <template #append >
4349 <span @click =" doSelectAdbPath" class =" cursor-pointer" >
4450 {{ t("选择路径") }}
@@ -47,7 +53,9 @@ const doSelectScrcpyPath = async () => {
4753 </a-input >
4854 </a-form-item >
4955 <a-form-item field =" name" :label =" t('scrcpy路径')" >
50- <a-input @change =" doScrcpyPathChange" v-model =" basic.scrcpyPath as string" >
56+ <a-input @change =" doScrcpyPathChange"
57+ :placeholder =" basic.scrcpyPathDefault"
58+ v-model =" basic.scrcpyPath as string" >
5159 <template #append >
5260 <span @click =" doSelectScrcpyPath" class =" cursor-pointer" >
5361 {{ t("选择路径") }}
0 commit comments