Vue 解决Cannot assign to read only property ‘exports‘ of object ‘#<Object>‘

某js文件引用其他js文件
发现问题:没有引入import之前是对的,引入之后就报错了!!!但是单独使用又没有问题!!!
Vue 解决Cannot assign to read only property ‘exports‘ of object ‘#<Object>‘
错误原因:vue项目的 文件中 import 和module.exports 不能混用

解决:把module.exports 改为export default就可以了
Vue 解决Cannot assign to read only property ‘exports‘ of object ‘#<Object>‘

破问题,坑死俺了!