Luka 1 місяць тому
батько
коміт
9684b9846b
4 змінених файлів з 18 додано та 38 видалено
  1. 0 11
      .env.staging
  2. 0 4
      .env.wyt
  3. 12 17
      README.md
  4. 6 6
      package.json

+ 0 - 11
.env.staging

@@ -1,11 +0,0 @@
-# 页面标题
-VITE_APP_TITLE = 中华人民共和国海事局
-
-# 生产环境配置
-VITE_APP_ENV = 'staging'
-
-# 中华人民共和国海事局/生产环境
-VITE_APP_BASE_API = '/stage-api'
-
-# 是否在打包时开启压缩,支持 gzip 和 brotli
-VITE_BUILD_COMPRESS = gzip

+ 0 - 4
.env.wyt

@@ -1,4 +0,0 @@
-# 页面标题
-VITE_APP_TITLE = 中华人民共和国海事局
-
-VITE_APP_BASE_API = 'http://10.8.88.6:9898/api'

+ 12 - 17
README.md

@@ -14,34 +14,29 @@ RuoYi-Vue3 + ts 版
 
 fork 于 https://github.com/yangzongzhuan/RuoYi-Vue3
 
-## 平台简介 
+## 平台简介
 
--   本仓库为前端技术栈 [Vue3](https://v3.cn.vuejs.org) + [Element Plus](https://element-plus.org/zh-CN) + [Vite](https://cn.vitejs.dev) 版本。
--   配套后端代码仓库地址[RuoYi-Vue](https://gitee.com/y_project/RuoYi-Vue) 或 [RuoYi-Vue-fast](https://github.com/yangzongzhuan/RuoYi-Vue-fast) 版本。
--   前端技术栈([Vue2](https://cn.vuejs.org) + [Element](https://github.com/ElemeFE/element) + [Vue CLI](https://cli.vuejs.org/zh)),请移步[RuoYi-Vue](https://gitee.com/y_project/RuoYi-Vue/tree/master/ruoyi-ui)。
--   阿里云折扣场:[点我进入](http://aly.ruoyi.vip),腾讯云秒杀场:[点我进入](http://txy.ruoyi.vip)  
--   阿里云优惠券:[点我领取](https://www.aliyun.com/minisite/goods?userCode=brki8iof&share_source=copy_link),腾讯云优惠券:[点我领取](https://cloud.tencent.com/redirect.php?redirect=1025&cps_key=198c8df2ed259157187173bc7f4f32fd&from=console)  
+- 本仓库为前端技术栈 [Vue3](https://v3.cn.vuejs.org) + [Element Plus](https://element-plus.org/zh-CN) + [Vite](https://cn.vitejs.dev) 版本。
+- 配套后端代码仓库地址[RuoYi-Vue](https://gitee.com/y_project/RuoYi-Vue) 或 [RuoYi-Vue-fast](https://github.com/yangzongzhuan/RuoYi-Vue-fast) 版本。
+- 前端技术栈([Vue2](https://cn.vuejs.org) + [Element](https://github.com/ElemeFE/element) + [Vue CLI](https://cli.vuejs.org/zh)),请移步[RuoYi-Vue](https://gitee.com/y_project/RuoYi-Vue/tree/master/ruoyi-ui)。
+- 阿里云折扣场:[点我进入](http://aly.ruoyi.vip),腾讯云秒杀场:[点我进入](http://txy.ruoyi.vip)  
+- 阿里云优惠券:[点我领取](https://www.aliyun.com/minisite/goods?userCode=brki8iof&share_source=copy_link),腾讯云优惠券:[点我领取](https://cloud.tencent.com/redirect.php?redirect=1025&cps_key=198c8df2ed259157187173bc7f4f32fd&from=console)  
 
 ## 前端运行
 
 拉取本项目 使用最先进的包管理工具 pnpm
 
 ```bash
-# 克隆项目
-git clone https://github.com/zzh948498/RuoYi-Vue3-ts.git
-
-# 进入项目目录
-cd RuoYi-Vue3-ts
 
 # 安装依赖
 pnpm i
 
 # 启动服务
-pnpm dev
+pnpm run dev
+
+# 构建测试环境
+pnpm run build:prod
 
-# 构建测试环境 yarn build:stage
-# 构建生产环境 yarn build:prod
-# 前端访问地址 http://localhost:80
 ```
 
 ## 内置功能
@@ -67,8 +62,8 @@ pnpm dev
 
 ## 在线体验
 
--   admin/admin123
--   陆陆续续收到一些打赏,为了更好的体验已用于演示服务器升级。谢谢各位小伙伴。
+- admin/admin123
+- 陆陆续续收到一些打赏,为了更好的体验已用于演示服务器升级。谢谢各位小伙伴。
 
 演示地址:http://vue.ruoyi.vip  
 文档地址:http://doc.ruoyi.vip

+ 6 - 6
package.json

@@ -1,13 +1,13 @@
 {
-    "name": "ruo-yi-vue3-ts",
+    "name": "bj-maritime-dcds-vue3-ts",
     "private": true,
     "version": "3.8.5",
     "scripts": {
-        "dev": "vite",
-        "build": "vite build",
-        "dev:wyt": "vite --mode wyt",
-        "build:stage": "vite build --mode staging",
-        "preview": "vite preview"
+        "dev": "vite serve --mode development",
+        "build:prod": "vite build --mode production",
+        "lint:eslint": "eslint  --fix --ext .ts,.js,.vue ./src ",
+        "lint:prettier": "prettier --write \"**/*.{js,cjs,ts,json,tsx,css,less,scss,vue,html,md}\"",
+        "lint:stylelint": "stylelint  \"**/*.{css,scss,vue}\" --fix"
     },
     "dependencies": {
         "@element-plus/icons-vue": "2.0.10",