我想从地址导出,该地址是变量中的字符串。 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我收到导出部分的错误。
添加回答
举报
0/150
提交
取消