You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Go to file
叶韬 a430537d03 接口调试,页面正常 4 weeks ago
.husky chore: init 3 months ago
.vscode chore: init 3 months ago
public chore: init 3 months ago
server chore: init 3 months ago
src 接口调试,页面正常 4 weeks ago
.env 接口调试,页面正常 4 weeks ago
.env.dev_test 接口调试,页面正常 4 weeks ago
.env.development 接口调试,页面正常 4 weeks ago
.env.production chore: init 3 months ago
.env.test chore: init 3 months ago
.gitignore chore: init 3 months ago
.lintstagedrc.mjs chore: init 3 months ago
.npmrc chore: init 3 months ago
.prettierrc chore: init 3 months ago
README.md chore: init 3 months ago
commitlint.config.ts chore: init 3 months ago
dev-server-config.ts 接口调试,页面正常 4 weeks ago
ecosystem.config.cjs 接口调试,页面正常 4 weeks ago
env.d.ts chore: init 3 months ago
eslint.config.mjs chore: init 3 months ago
nuxt.config.ts 接口调试,页面正常 4 weeks ago
package-lock.json 接口请求配置 4 weeks ago
package.json 接口调试,页面正常 4 weeks ago
pnpm-lock.yaml chore: init 3 months ago
tsconfig.json chore: init 3 months ago
uno.config.ts chore: init 3 months ago

README.md

Nuxt 3 + Vue3.4

项目配置:

  1. node 版本 v18.20.1;
  2. pnpm 版本 v8.6.1;
  3. vue@3.4.21 | pinia@2.2.1;
  4. nuxt @3.12.4;

项目启动

# 安装包
pnpm install

# 启动
pnpm run dev

项目打包

# SSR

## 测试环境
pnpm run build:test

## 正式环境
pnpm run build

# ---------------- #

# 静态部署

## 测试环境
pnpm run generate:test

## 正式环境
pnpm run generate

src 目录结构

  • src
    • apiss api 接口
    • assets 资产目录
      • images 公用图片
      • scss 公共scss
      • json 本地数据目录
      • ts 公用脚本目录
    • components vue 组件目录
    • composables
    • hooks 公共方法
    • config 公共配置
      • env.ts 环境变量
      • server api请求配置
    • layouts 布局
      • blank.vue 空白布局
      • default.vue 默认布局
    • locales 国际化
      • en.json 中文
      • zh.json. 英文
    • middleware 中间件
    • pages 页面目录
    • server HTTPS
    • store
    • typings ts类型配置
    • utils 工具
      • computed 计算工具
      • download-file 文件下载工具
    • app.vue
  • dev-server-config.ts 开发代理
  • nuxt.config.ts nuxt配置