Commit 0152b21d authored by 高晓帆's avatar 高晓帆

fix

parent 163ecd3b
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -390,7 +390,11 @@ export default class Socket {
let {type, code} = msg
if (!SETTING_TYPE[type]) return
let ackType = code === 0 ? 'success' : 'error'
Message[ackType](`${SETTING_TYPE[type]}设置${code === 0 ? '成功' : '失败'}`)
let text = SETTING_TYPE[type];
if (type == 4) {
text = '指令'
}
Message[ackType](`${text}设置${code === 0 ? '成功' : '失败'}`)
if (type == 6 && code === 0) {
let data = {
type: '/setting/req',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment