Commit fb644c77 authored by 王曜嵚 Wang Yaoqin's avatar 王曜嵚 Wang Yaoqin

dev: fetch 增加提示

parent 9446dc52
...@@ -93,6 +93,7 @@ async function handleFetch(platform: 'v1' | 'v2') { ...@@ -93,6 +93,7 @@ async function handleFetch(platform: 'v1' | 'v2') {
if (!branch) return if (!branch) return
await $fetch('/api/git/fetch', { method: 'post', body: { branch, platform }}) await $fetch('/api/git/fetch', { method: 'post', body: { branch, platform }})
await getAllBranch(platform) await getAllBranch(platform)
alert('切换分支完成,请重新编译运行')
} }
async function handleCheckout(platform: 'v1' | 'v2') { async function handleCheckout(platform: 'v1' | 'v2') {
const branch = platform === 'v1' ? form.value.targetBranchV1 : form.value.targetBranchV2 const branch = platform === 'v1' ? form.value.targetBranchV1 : form.value.targetBranchV2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment