🐛 修复一堆bug

This commit is contained in:
目棃
2024-09-06 11:23:19 +08:00
parent 8e995283ea
commit 599f9273e2
23 changed files with 102 additions and 492 deletions

View File

@@ -1,12 +1,12 @@
/**
* @file utils/UIGF.ts
* @description UIGF工具类
* @since Beta v0.5.1
* @since Beta v0.5.5
*/
import { app, path } from "@tauri-apps/api";
import { readTextFile, writeTextFile } from "@tauri-apps/plugin-fs";
import Ajv from "ajv";
import { Ajv } from "ajv";
import { ErrorObject } from "ajv/lib/types/index.js";
import showSnackbar from "../components/func/snackbar.js";

View File

@@ -32,7 +32,7 @@ export async function parsePost(link: string): Promise<false | string> {
const urlTransform = decodeURIComponent(url.search.replace("?link=", ""));
return await parsePost(urlTransform);
}
// todo 不保证转换后的链接可用
// 不保证转换后的链接可用
if (url.pathname === "//openURL" && url.search.startsWith("?url=")) {
const urlTransform = decodeURIComponent(url.search.replace("?url=", ""));
return await parsePost(urlTransform);
@@ -79,7 +79,7 @@ export async function parseLink(
const urlTransform = decodeURIComponent(url.search.replace("?link=", ""));
return await parseLink(urlTransform, useInner);
}
// todo 不保证转换后的链接可用
// 不保证转换后的链接可用
if (url.pathname === "//openURL" && url.search.startsWith("?url=")) {
const urlTransform = decodeURIComponent(url.search.replace("?url=", ""));
return await parseLink(urlTransform, useInner);