🚸 新增srs命令用于重置窗口回正

This commit is contained in:
BTMuli
2026-01-02 21:01:19 +08:00
parent 7ed9e6c17e
commit 0d37a86883
2 changed files with 3 additions and 0 deletions

View File

@@ -55,6 +55,7 @@
"cli": {
"description": "The Command Func for TeyvatGuide",
"subcommands": {
"srs": { "description": "Set auto resize to true" },
"us": {
"description": "Run User Scripts",
"args": [

View File

@@ -435,6 +435,8 @@ async function handleCommands(cmds: CliMatches): Promise<void> {
skip: `${usMatch.args.skip.value ?? false}`,
},
});
} else if (cmds.subcommand.name === "srs") {
needResize.value = "true";
}
}
</script>