小编Mar*_*tin的帖子

在 Nuxt 项目中哪里放置自定义 Vue mixins 和辅助函数?

我有一个 Nuxt 项目,我需要制作自定义函数和 Vue mixins 以在 Vue 组件和页面中重用。

In which folder should I put the files containing these? Should I create a 'lib' folder at the top level of the Nuxt project and put the files in there?

Extra details if that can help:

  • These functions will be imported only when needed (not global)
  • These functions will be tested

Nuxt Directory Structure Documentation

vue.js vuejs2 nuxt.js

5
推荐指数
1
解决办法
7470
查看次数

标签 统计

nuxt.js ×1

vue.js ×1

vuejs2 ×1