Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
eslotsys-game
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
毛线
eslotsys-game
Commits
378603ea
Commit
378603ea
authored
Jun 27, 2023
by
毛线
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
47ae8e19
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
2 deletions
+29
-2
nuxt.config.ts
nuxt.config.ts
+9
-1
index.vue
pages/index.vue
+20
-1
No files found.
nuxt.config.ts
View file @
378603ea
// https://nuxt.com/docs/api/configuration/nuxt-config
// https://nuxt.com/docs/api/configuration/nuxt-config
export
default
defineNuxtConfig
({
export
default
defineNuxtConfig
({
devtools
:
{
enabled
:
true
}
devtools
:
{
enabled
:
true
},
nitro
:
{
devProxy
:
{
'/proxy'
:
{
target
:
'http://blf.localhost'
,
changeOrigin
:
true
,
},
}
},
})
})
pages/index.vue
View file @
378603ea
...
@@ -4,5 +4,24 @@
...
@@ -4,5 +4,24 @@
<AppAlert>
<AppAlert>
This is an auto-imported component
This is an auto-imported component
</AppAlert>
</AppAlert>
<div>
{{
token
}}
</div>
</div>
</div>
</
template
>
</
template
>
\ No newline at end of file
<
script
setup
>
let
token
=
''
console
.
log
(
'created'
)
// const { data: count } = await useFetch('/api/count')
$fetch
(
'/proxy/api.test/getToken'
,
{
method
:
'post'
,
body
:
{
phone
:
'18275342389'
,
},
}).
then
(({
data
})
=>
{
// const { token } = data
token
=
data
.
token
console
.
log
(
'token'
,
token
)
})
token
=
123
</
script
>
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