This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.post(api_path, async (c) => { | |
const req = await c.req.json(); | |
const [payload, resHelper] = reqParser(req); | |
const r = await execClientRequest(payload.data) | |
return c.json(resHelper(r, null)); | |
}); | |
interface queries { | |
schemaHash: string; | |
modelName: "Proxy_api"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { reactive, computed } from "vue"; | |
/** 返回一个 params对象 与 href 字符串computed ,href 依赖于 params | |
* @example | |
* ```js | |
* const [AppOptions, href] = useParamsObj(undefined, {}); | |
* // 将基于 AppOptions 计算得来的 href 设置到 history | |
* watchEffect(() => history.replaceState("", "", href.value)); | |
* ``` | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const copy = (str: string) => { | |
// 第一种 | |
navigator.clipboard.writeText(str); | |
}; | |
export const copy2 = (str: string) => { | |
// 第二种 | |
const input = document.createElement("textarea"); | |
input.style.opacity = "0"; | |
document.body.appendChild(input); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2019-04-16T06:28:17.779Z","extensionVersion":"v3.2.8"} |