我想从地址导出,该地址是变量中的字符串。
import {device} from 'device.js'
let buttonUrl;
if(device.desktop){
buttonUrl = './components/Elements/Button/Button'
}
else if(device.mobile || device.tablet){
buttonUrl = './components/Elements/Button/ButtonMobile'
}
export {
Button,
} from buttonUrl
我收到导出部分的错误。
富国沪深
相关分类