Skip to content

Commit

Permalink
feat: #133 支持Github系列-优化第一次发布体验
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Dec 14, 2022
1 parent 2619353 commit 83b6df6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions composables/publish/initPublishCom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,12 @@ export const useInitPublish = (props, deps, otherArgs?) => {
return initPublishData
},

initPage: async () => {
initPublishData.isInitLoading = true
/**
* 初始化发布页面
* @param hideTip 是否隐藏loading
*/
initPage: async (hideTip?: boolean) => {
initPublishData.isInitLoading = hideTip != true

try {
// 读取偏好设置
Expand Down
2 changes: 1 addition & 1 deletion composables/publish/publishActionCom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const usePublish = (props, deps?: any) => {
}

// 这里初始化一下页面,防止某些属性没有的情况
await initPublishMethods.initPage()
await initPublishMethods.initPage(true)
} else {
// 更新的时候,自动保存属性到思源
await quickMethods.saveAttrToSiyuan(true)
Expand Down

0 comments on commit 83b6df6

Please sign in to comment.