diff --git a/package.json b/package.json index b9406c84a..b7dc55048 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "recordrtc": "^5.5.9", "script-loader": "^0.7.2", "sessionstorage": "^0.1.0", - "sockjs-client": "^1.0.0", + "sockjs-client": "^1.4.0", "stompjs": "^2.3.3", "storejs": "^1.0.25", "three": "^0.107.0", diff --git a/src/views/lesson/home.vue b/src/views/lesson/home.vue index 131e5039f..4ed067adb 100644 --- a/src/views/lesson/home.vue +++ b/src/views/lesson/home.vue @@ -140,7 +140,7 @@ export default { }, hasRelease() { return this.$store.state.user.roles.includes('04') || - this.$store.state.user.roles.includes('05'); + this.$store.state.user.roles.includes('05') || this.$store.state.user.roles.includes('03'); } }, watch: { diff --git a/src/views/lesson/lessoncategory/edit/lesson/publish.vue b/src/views/lesson/lessoncategory/edit/lesson/publish.vue index 5518b2275..0fc49a88f 100644 --- a/src/views/lesson/lessoncategory/edit/lesson/publish.vue +++ b/src/views/lesson/lessoncategory/edit/lesson/publish.vue @@ -76,7 +76,7 @@ export default { }, hasRelease() { return this.$store.state.user.roles.includes('04') || - this.$store.state.user.roles.includes('05'); + this.$store.state.user.roles.includes('05') || this.$store.state.user.roles.includes('03'); }, isProject() { return getSessionStorage('project').endsWith('gzb');