今天敲代码出现下面这个错误,Assign object to a variable before exporting as module default import/no-anonymous-default-export,如图:
源代码:
export default {
user: {}
}
解决方案:
const user = {
user: {}
}
export default user;
今天敲代码出现下面这个错误,Assign object to a variable before exporting as module default import/no-anonymous-default-export,如图:
源代码:
export default {
user: {}
}
解决方案:
const user = {
user: {}
}
export default user;