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')
      }
    }
  },

 

相关文章:

  • 2022-12-23
  • 2021-10-06
  • 2022-12-23
  • 2021-08-04
  • 2021-10-08
  • 2021-05-16
  • 2021-04-27
  • 2022-12-23
猜你喜欢
  • 2021-05-31
  • 2022-12-23
  • 2021-12-25
  • 2021-11-13
  • 2021-06-21
相关资源
相似解决方案