提交 52f45789 编写于 作者: yma16's avatar yma16

perf: 封装动态标签

上级 52516324
...@@ -368,9 +368,26 @@ export default { ...@@ -368,9 +368,26 @@ export default {
mounted () { mounted () {
this.articleScrollListen('add') this.articleScrollListen('add')
this.initPageSpliteFun() this.initPageSpliteFun()
this.getChallengeDict()
// window.addEventListener('onload', this.topVisible()) // window.addEventListener('onload', this.topVisible())
}, },
methods: { methods: {
getChallengeDict () {
const that = this
that.$axios
.post(that.baseurl + 'dictModel/index/', {
kind: 'challenge'
// 传入索引
})
.then((res) => {
that.challengeConfig = res.data.data.map(item => {
return JSON.parse(item.option)
})
})
.catch((error) => {
throw Error(error)
})
},
/** /**
* dom的滚动事件监听 * dom的滚动事件监听
*/ */
......
...@@ -145,7 +145,7 @@ export default { ...@@ -145,7 +145,7 @@ export default {
websocketUrl: 'wss://yongma16.xyz/ws-api/', websocketUrl: 'wss://yongma16.xyz/ws-api/',
websocket: null, websocket: null,
// room 存房间名字,content保存聊天信息的数组 // room 存房间名字,content保存聊天信息的数组
chat_info: new Array(), chat_info: [],
chat_room: null, chat_room: null,
room_loc: 0, room_loc: 0,
user: '', user: '',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册