Syntax Error: // https://github.com/ant-design/ant-motion/issues/44 .bezierEasingMixin(); ^ Inline JavaScript is not enabled. Is it set in your options? in /Users/dengzemiao/Desktop/test/antdvtest/test/node_modules/ant-design-vue/lib/style/color/bezierEasing.less (line 110, column 0) @ ./node_modules/ant-design-vue/dist/antd.less 4:14-188 15:3-20:5 16:22-196 @ ./src/main.js @ multi (webpack)-dev-server/client?http://10.0.90.164:8081&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js
解决办法:创建 vue.config.js,加入下面配置
module.exports = { css: { loaderOptions: { less: { // 自定义主题样式 // modifyVars: { // 'primary-color': '#41B883', // 'link-color': '#41B883', // 'border-radius-base': '2px' // } // 解决问题主要需要打开这个 javascriptEnabled: true } } } }