Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xxx_phase2_web
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
夏敏伟
xxx_phase2_web
Commits
6cf7bb37
Commit
6cf7bb37
authored
Sep 25, 2023
by
夏敏伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改token登录
parent
eec1433c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
src/util/login_util.js
src/util/login_util.js
+4
-4
src/view/ddkz/components/noticeDialog.vue
src/view/ddkz/components/noticeDialog.vue
+4
-0
src/view/ddkz/ddkzzs.vue
src/view/ddkz/ddkzzs.vue
+3
-7
No files found.
src/util/login_util.js
View file @
6cf7bb37
...
...
@@ -8,11 +8,11 @@ function parseToken(token) {
return
(
decodeURIComponent
(
escape
(
window
.
atob
(
base64
))));
}
export
function
setLoginSuccessParam
()
{
export
function
setLoginSuccessParam
(
token
)
{
//登录状态
sessionStorage
.
setItem
(
"
isLogin
"
,
true
);
//解析token
let
token
=
getCookie
(
SESSION_ID
);
//
let token = getCookie(SESSION_ID);
let
user
=
parseToken
(
token
);
sessionStorage
.
setItem
(
"
user
"
,
user
);
sessionStorage
.
setItem
(
"
token
"
,
token
);
...
...
@@ -25,8 +25,8 @@ export function login(account, password) {
account
+
"
&password=
"
+
btoa
(
password
)
)
.
then
(
res
=>
{
if
(
res
==
1
)
{
setLoginSuccessParam
();
if
(
res
)
{
setLoginSuccessParam
(
res
);
resolve
(
"
登录成功
"
);
}
else
{
reject
(
"
密码错误
"
);
...
...
src/view/ddkz/components/noticeDialog.vue
View file @
6cf7bb37
...
...
@@ -15,6 +15,10 @@
<div
class=
"el-upload__tip"
slot=
"tip"
>
只能上传jpg/png文件,且不超过500kb
</div>
</el-upload>
</el-form-item>
<el-form-item
style=
"text-align: center;"
>
<el-button
type=
"default"
>
取消
</el-button>
<el-button
type=
"success"
>
发送
</el-button>
</el-form-item>
</el-form>
</div>
</el-dialog>
...
...
src/view/ddkz/ddkzzs.vue
View file @
6cf7bb37
...
...
@@ -61,7 +61,7 @@
<div
class=
"ddkz-info-content"
>
<div
class=
"info-content-left"
>
<div
class=
"everyDayNews"
v-for=
"item in newsList"
>
<div
class=
"everyDayTitle"
@
click=
"showCards(false)"
>
<div
class=
"everyDayTitle"
>
<div
class=
"circle-light"
></div>
 
<span
v-text=
"item.time"
></span>
 
<!--
<span
v-text=
"item.week"
></span>
-->
...
...
@@ -418,10 +418,6 @@ export default {
this
.
peopleList
=
res
.
chatRoomMemberRelationBOList
;
});
// //查询我方聊天记录
// getRecordsByPaging(item.id, 1, 100, '2020-01-01 00:00:00', '2023-10-01 00:00:00', null, item.teamId).then(res1 => {
// this.chatMessageList = res1.records;
// })
//分页查询群聊天记录
getRecordsByPaging
(
item
.
id
,
1
,
100
,
'
2020-01-01 00:00:00
'
,
'
2023-10-01 00:00:00
'
).
then
(
res1
=>
{
let
newsArr
=
[];
...
...
@@ -516,7 +512,7 @@ export default {
height
:
100%
;
.ddkz-selection
{
display
:
none
;
//
display: none;
width
:
100%
;
height
:
40px
;
text-align
:
right
;
...
...
@@ -684,7 +680,7 @@ export default {
height
:
100%
;
.ddkz-info-selection
{
display
:
none
;
//
display: none;
width
:
100%
;
height
:
40px
;
text-align
:
right
;
...
...
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