Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nuxt-backend-helper
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王曜嵚 Wang Yaoqin
nuxt-backend-helper
Commits
fb644c77
Commit
fb644c77
authored
May 16, 2024
by
王曜嵚 Wang Yaoqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev: fetch 增加提示
parent
9446dc52
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
git.vue
pages/git.vue
+1
-0
No files found.
pages/git.vue
View file @
fb644c77
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment