Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
source-trace-manage-go
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tracing
source-trace-manage-go
Commits
8fd950ed
Commit
8fd950ed
authored
Apr 08, 2021
by
zL
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交部分代码
parent
3117b94e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
9 deletions
+14
-9
URLS.ts
src/config/URLS.ts
+1
-0
SignIn.vue
src/entry/czt/views/SignIn.vue
+13
-9
No files found.
src/config/URLS.ts
View file @
8fd950ed
...
...
@@ -56,4 +56,5 @@ export class GO_URLS {
static
chunkCheck
=
prefix_go
+
'/api/file/chunk/check'
;
// 检查分块
static
chunkUpload
=
prefix_go
+
'/api/file/chunk/upload'
;
// 分块上传
static
chunkMerge
=
prefix_go
+
'/api/file/chunk/merge'
;
// 合并分块
static
token
=
prefix_go
+
'/api/user/demo/token'
;
// token
}
src/entry/czt/views/SignIn.vue
View file @
8fd950ed
...
...
@@ -2,25 +2,29 @@
<div>
login
</div>
</
template
>
<
script
lang=
"ts"
>
import
{
Component
,
Vue
}
from
"vue-property-decorator"
;
// let UrlPrefixObj = require("@/config/UrlPrefix");
import
{
GO_URLS
}
from
"@/config/URLS"
;
import
{
Component
,
Vue
}
from
"vue-property-decorator"
;
@
Component
({
components
:
{
},
components
:
{},
})
export
default
class
signIn
extends
Vue
{
public
async
created
()
{
const
id
=
this
.
$route
.
query
.
userId
;
const
id
=
this
.
$route
.
query
.
userId
?
this
.
$route
.
query
.
userId
:
'133124'
;
const
res
=
await
this
.
$ajax
({
type
:
"post"
,
url
:
'http://124.71.144.118:46789/api/user/demo/token'
,
url
:
GO_URLS
.
token
,
params
:
{
id
},
});
if
(
res
)
{
sessionStorage
.
setItem
(
`user`
,
JSON
.
stringify
({
id
,
token
:
res
.
data
.
token
}));
sessionStorage
.
setItem
(
`user`
,
JSON
.
stringify
({
id
,
token
:
res
.
data
.
token
,
})
);
this
.
$router
.
push
({
path
:
"/categoryManage"
});
}
}
...
...
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