Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
study
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
Damon
study
Commits
e2e9ddd7
Commit
e2e9ddd7
authored
Aug 02, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 机构ID存储
parent
2640416a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
8 deletions
+9
-8
App.vue
src/App.vue
+2
-3
index.vue
src/pages/index/index.vue
+1
-1
boundQuestions.vue
src/pages/learn/boundQuestions.vue
+1
-1
detail.vue
src/pages/learn/detail.vue
+1
-1
index.vue
src/pages/login/index.vue
+1
-1
index.js
src/store/index.js
+3
-1
No files found.
src/App.vue
View file @
e2e9ddd7
...
@@ -4,11 +4,10 @@ export default {
...
@@ -4,11 +4,10 @@ export default {
globalData
:
{
globalData
:
{
// 开发环境
// 开发环境
uniEnv
:
process
.
uniEnv
,
uniEnv
:
process
.
uniEnv
,
questionList
:
[],
questionList
:
[]
orgId
:
-
1
},
},
onLaunch
:
function
(
options
)
{
onLaunch
:
function
(
options
)
{
this
.
globalData
.
orgId
=
options
?.
query
?.
orgId
||
-
1
this
.
$u
.
vuex
(
'orgId'
,
options
?.
query
?.
orgId
||
-
1
)
// 版本更新
// 版本更新
this
.
updateApp
()
this
.
updateApp
()
},
},
...
...
src/pages/index/index.vue
View file @
e2e9ddd7
...
@@ -130,7 +130,7 @@ export default {
...
@@ -130,7 +130,7 @@ export default {
},
},
computed
:
{
computed
:
{
orgIdText
()
{
orgIdText
()
{
return
getApp
().
globalData
.
orgId
return
this
.
orgId
},
},
title
()
{
title
()
{
return
this
.
selected
.
title
||
'请选择题库'
return
this
.
selected
.
title
||
'请选择题库'
...
...
src/pages/learn/boundQuestions.vue
View file @
e2e9ddd7
...
@@ -133,7 +133,7 @@ export default {
...
@@ -133,7 +133,7 @@ export default {
},
},
]
]
const
data
=
{
const
data
=
{
instrtutionId
:
getApp
().
globalData
.
orgId
,
instrtutionId
:
this
.
orgId
,
orders
:
JSON
.
stringify
(
lists
),
orders
:
JSON
.
stringify
(
lists
),
openId
:
this
.
openId
,
openId
:
this
.
openId
,
}
}
...
...
src/pages/learn/detail.vue
View file @
e2e9ddd7
...
@@ -206,7 +206,7 @@ export default {
...
@@ -206,7 +206,7 @@ export default {
},
},
]
]
const
data
=
{
const
data
=
{
instrtutionId
:
getApp
().
globalData
.
orgId
,
instrtutionId
:
this
.
orgId
,
orders
:
JSON
.
stringify
(
lists
),
orders
:
JSON
.
stringify
(
lists
),
openId
:
this
.
openId
,
openId
:
this
.
openId
,
}
}
...
...
src/pages/login/index.vue
View file @
e2e9ddd7
...
@@ -61,7 +61,7 @@ export default {
...
@@ -61,7 +61,7 @@ export default {
code
:
code
,
code
:
code
,
avatar
:
userInfo
.
avatarUrl
,
avatar
:
userInfo
.
avatarUrl
,
nickname
:
userInfo
.
nickName
,
nickname
:
userInfo
.
nickName
,
orgId
:
getApp
().
globalData
.
orgId
,
orgId
:
this
.
orgId
,
}
}
uni
.
showLoading
({
uni
.
showLoading
({
title
:
'加载中'
,
title
:
'加载中'
,
...
...
src/store/index.js
View file @
e2e9ddd7
...
@@ -19,7 +19,8 @@ let saveStateKeys = [
...
@@ -19,7 +19,8 @@ let saveStateKeys = [
'tipStatus'
,
'tipStatus'
,
'questionWarehouseId'
,
'questionWarehouseId'
,
'relationId'
,
// 绑卡用
'relationId'
,
// 绑卡用
'answerCount'
'answerCount'
,
'orgId'
]
]
// 保存变量到本地存储中
// 保存变量到本地存储中
...
@@ -51,6 +52,7 @@ const store = new Vuex.Store({
...
@@ -51,6 +52,7 @@ const store = new Vuex.Store({
questionWarehouseId
:
lifeData
.
questionWarehouseId
questionWarehouseId
:
lifeData
.
questionWarehouseId
?
lifeData
.
questionWarehouseId
?
lifeData
.
questionWarehouseId
:
'1414854649273384960'
,
// 科目ID
:
'1414854649273384960'
,
// 科目ID
orgId
:
lifeData
.
orgId
?
lifeData
.
orgId
:
-
1
,
// 机构ID
// 如果vuex_version无需保存到本地永久存储,无需lifeData.vuex_version方式
// 如果vuex_version无需保存到本地永久存储,无需lifeData.vuex_version方式
vuex_version
:
'1.0.0'
,
vuex_version
:
'1.0.0'
,
questionList
:
{},
// 练习列表
questionList
:
{},
// 练习列表
...
...
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