Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
eslotsys-game-nuxt
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-nuxt
Commits
c8e9f872
Commit
c8e9f872
authored
Jul 18, 2023
by
毛线
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
im登录问题处理
parent
4f9e72b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
default.vue
layouts/default.vue
+2
-2
index.js
store/index.js
+5
-0
No files found.
layouts/default.vue
View file @
c8e9f872
...
...
@@ -10,7 +10,7 @@
<
script
>
import
{
mapActions
,
mapMutations
}
from
'vuex'
import
{
deviceType
}
from
'@/utils/device-type'
//
import { deviceType } from '@/utils/device-type'
import
Audio
from
'@/components/common/audio/index'
export
default
{
components
:
{
...
...
@@ -71,7 +71,7 @@ export default {
]),
initSceen
()
{
const
{
innerWidth
,
innerHeight
}
=
window
const
isMobile
=
deviceType
(
navigator
.
userAgent
)
const
isMobile
=
false
if
(
process
.
env
.
NODE_ENV
===
'development'
)
{
// return
}
...
...
store/index.js
View file @
c8e9f872
...
...
@@ -149,6 +149,10 @@ export const mutations = {
state
.
dictionary
=
dictionary
},
SetImToken
(
state
,
data
)
{
state
.
imToken
=
data
},
SetDeviceList
(
state
,
data
)
{
state
.
deviceList
=
data
},
...
...
@@ -179,6 +183,7 @@ export const actions = {
const
{
data
}
=
res
const
{
token
,
openImToken
,
userId
}
=
data
commit
(
RELIST
,
false
)
commit
(
'SetImToken'
,
openImToken
)
setUserData
({
token
,
openImToken
,
userId
})
resolve
(
res
)
}).
catch
(
error
=>
{
...
...
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