修改看板

boardTest
夜笙歌 3 weeks ago
parent 66caa3b60c
commit df6b1cd692

@ -1,13 +1,10 @@
module.exports = { module.exports = {
presets: [ presets: [// https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
// https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app '@vue/cli-plugin-babel/preset'], 'env': {
'@vue/cli-plugin-babel/preset'
],
'env': {
'development': { 'development': {
// babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require(). // babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
// This plugin can significantly increase the speed of hot updates, when you have a large number of pages. // This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
'plugins': ['dynamic-import-node'] 'plugins': ['dynamic-import-node', 'json-parse-with-source']
} }
} }
} }

@ -96,11 +96,11 @@ export default {
onWebSocketMessage(event) { onWebSocketMessage(event) {
try { try {
const data = JSON.parse(event.data, (key, value, ctx) => { const data = JSON.parse(event.data, (key, value, ctx) => {
console.log('key',key) if (key === 'objid') {
console.log('value',value) console.log(value.toString())
console.log('ctx',ctx) }
if (typeof value === 'number' && value > Number.MAX_SAFE_INTEGER) { if (typeof value === 'number' && value > Number.MAX_SAFE_INTEGER) {
return ctx?.source || ''; return '' + value;
} }
return value; return value;
}) })

Loading…
Cancel
Save