Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: 修复配置保存之后刷新页面错误的问题
  • Loading branch information
terwer committed Jan 11, 2023
1 parent 9afa0e6 commit 6a69cc9
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 16 deletions.
6 changes: 4 additions & 2 deletions layouts/default/DefaultFooter.vue
Expand Up @@ -161,7 +161,7 @@ import {
getSiyuanCfg,
SiYuanConfig,
} from "~/utils/platform/siyuan/siYuanConfig"
import { goToPage, goToPageWithTarget } from "~/utils/otherlib/ChromeUtil"
import { goToPage } from "~/utils/otherlib/ChromeUtil"
import {
clearConf,
exportConf,
Expand Down Expand Up @@ -281,7 +281,9 @@ const handleSiyuanApiSetting = async (formEl) => {
setTimeout(function () {
// 关闭对话框
siyuanApiChangeFormVisible.value = false
goToPageWithTarget("/blog/index.html", "_self", "")
// goToPageWithTarget("/blog/index.html", "_self", "")
reloadPage()
}, 500)
} catch (e) {
siyuanApiChangeFormVisible.value = false
Expand Down
4 changes: 2 additions & 2 deletions package.json
@@ -1,7 +1,7 @@
{
"name": "sy-post-publisher",
"private": true,
"version": "0.6.2",
"version": "0.6.3",
"packageManager": "pnpm@7.18.1",
"scripts": {
"serve": "vercel dev --listen 6006",
Expand All @@ -20,7 +20,7 @@
"extChromeWin": "pwsh scripts/ext.ps1",
"extChromeDev": "bash scripts/extDev.sh",
"extFirefox": "bash scripts/extFV2.sh",
"newVersion": "cd scripts && python3 version.py 0.6.2 && cd ../",
"newVersion": "cd scripts && python3 version.py 0.6.3 && cd ../",
"dcfg": "bash scripts/devWidgetConfig.sh"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion public/manifest.dev.json
@@ -1,6 +1,6 @@
{
"name": "开发版 - 思源笔记发布辅助工具",
"version": "0.6.2",
"version": "0.6.3",
"manifest_version": 3,
"author": "terwer",
"description": "思源笔记发布辅助工具,支持博客式只读浏览,多平台文章发布。",
Expand Down
2 changes: 1 addition & 1 deletion public/manifest.prod.json
@@ -1,6 +1,6 @@
{
"name": "思源笔记发布辅助工具",
"version": "0.6.2",
"version": "0.6.3",
"manifest_version": 3,
"author": "terwer",
"icons": {
Expand Down
2 changes: 1 addition & 1 deletion public/mv2/manifest-v2-for-firefox.json
@@ -1,6 +1,6 @@
{
"name": "开发版 - 思源笔记发布辅助工具",
"version": "0.6.2",
"version": "0.6.3",
"manifest_version": 2,
"author": "terwer",
"icons": {
Expand Down
2 changes: 1 addition & 1 deletion public/widget.json
Expand Up @@ -2,5 +2,5 @@
"name": "sy-post-publisher",
"author": "terwer",
"url": "https://github.com/terwer/src-sy-post-publisher",
"version": "0.6.2"
"version": "0.6.3"
}
16 changes: 8 additions & 8 deletions utils/otherlib/ChromeUtil.js
Expand Up @@ -108,14 +108,14 @@ export function goToPage(pageUrl) {
window.open(url)
}

export function goToPageWithTarget(pageUrl, target, split) {
const url = getPageUrl(pageUrl, split)
if (target === "_self") {
window.location.href = url
} else {
window.open(url)
}
}
// export function goToPageWithTarget(pageUrl, target, split) {
// const url = getPageUrl(pageUrl, split)
// if (target === "_self") {
// window.location.href = url
// } else {
// window.open(url)
// }
// }

/**
* 检测是否运行在Chrome插件中
Expand Down

0 comments on commit 6a69cc9

Please sign in to comment.