[fix] lint errors + new version
This commit is contained in:
@@ -42,7 +42,7 @@
|
|||||||
},
|
},
|
||||||
"productName": "CS工具箱",
|
"productName": "CS工具箱",
|
||||||
"mainBinaryName": "cstb",
|
"mainBinaryName": "cstb",
|
||||||
"version": "0.0.5-beta.4",
|
"version": "0.0.5-beta.5",
|
||||||
"identifier": "upup.cool",
|
"identifier": "upup.cool",
|
||||||
"plugins": {
|
"plugins": {
|
||||||
"deep-link": {
|
"deep-link": {
|
||||||
|
|||||||
@@ -325,7 +325,10 @@ const VideoSetting = () => {
|
|||||||
<ToolButton
|
<ToolButton
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
if (steam.state.steamDirValid && steam.currentUser()) {
|
if (steam.state.steamDirValid && steam.currentUser()) {
|
||||||
void tool.getVideoConfig(steam.state.steamDir, steam.currentUser()?.steam_id32 || 0)
|
await tool.getVideoConfig(
|
||||||
|
steam.state.steamDir,
|
||||||
|
steam.currentUser()?.steam_id32 || 0
|
||||||
|
)
|
||||||
addToast({ title: "读取成功" })
|
addToast({ title: "读取成功" })
|
||||||
} else addToast({ title: "请先选择用户", color: "danger" })
|
} else addToast({ title: "请先选择用户", color: "danger" })
|
||||||
}}
|
}}
|
||||||
@@ -366,7 +369,7 @@ const VideoSetting = () => {
|
|||||||
10
|
10
|
||||||
)}
|
)}
|
||||||
onValueChange={(value) => {
|
onValueChange={(value) => {
|
||||||
edit
|
const _ = edit
|
||||||
? setVconfig({
|
? setVconfig({
|
||||||
...vconfig,
|
...vconfig,
|
||||||
defaultres: value.toString(),
|
defaultres: value.toString(),
|
||||||
@@ -407,12 +410,13 @@ const VideoSetting = () => {
|
|||||||
fullWidth
|
fullWidth
|
||||||
selectedKey={vid.value}
|
selectedKey={vid.value}
|
||||||
onSelectionChange={(key) => {
|
onSelectionChange={(key) => {
|
||||||
console.log(vid.type, key)
|
// console.log(vid.type, key)
|
||||||
// 修改 vconfig 名为 vid.type 的 value为 key
|
// 修改 vconfig 名为 vid.type 的 value为 key
|
||||||
|
const _ =
|
||||||
edit && key
|
edit && key
|
||||||
? setVconfig({
|
? setVconfig({
|
||||||
...vconfig,
|
...vconfig,
|
||||||
[vid.type]: vid.mapping?.(key.toString()),
|
[vid.type]: vid.mapping(key.toString()),
|
||||||
})
|
})
|
||||||
: null
|
: null
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user