1 /* Layout */ 2 import Layout from '@/layout'
這個@的代表src,意思就是在src路徑下找文件。
也可以在vue.config.js文件里配置,找到下面這段話
configureWebpack: {
// provide the app's title in webpack's name field, so that
// it can be accessed in index.html to inject the correct title.
name: name,
resolve: {
alias: {
'@': resolve('src')
}
}
},