怎么获取package.json文件里的name 或者获取router index.js文件里的base
虽然很怪,,
import config from '../package.json'
这个config里边的name就是你想要的