|
@@ -27,6 +27,7 @@
|
|
|
<script>
|
|
<script>
|
|
|
import AudioComponent from './AudioComponent.vue'
|
|
import AudioComponent from './AudioComponent.vue'
|
|
|
import { addPz2 } from '@/api/course'
|
|
import { addPz2 } from '@/api/course'
|
|
|
|
|
+import { mapState } from 'vuex'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
props: {
|
|
props: {
|
|
@@ -52,7 +53,8 @@ export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
type: 1,
|
|
type: 1,
|
|
|
- message: ''
|
|
|
|
|
|
|
+ message: '',
|
|
|
|
|
+ ...mapState({ userinfo: 'user/userinfo' })
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
@@ -70,7 +72,7 @@ export default {
|
|
|
const params = [
|
|
const params = [
|
|
|
{
|
|
{
|
|
|
cid: this.courseid,
|
|
cid: this.courseid,
|
|
|
- uid: '',
|
|
|
|
|
|
|
+ uid: this.userinfo.userid,
|
|
|
s: this.courseType,
|
|
s: this.courseType,
|
|
|
t: this.taskCount,
|
|
t: this.taskCount,
|
|
|
c: type === 1 ? this.message.replaceAll(/%/g, '%25') : content,
|
|
c: type === 1 ? this.message.replaceAll(/%/g, '%25') : content,
|