Browse Source

修改提交

wangqin
Joe 10 months ago
parent
commit
b4042fb7b1
  1. 6
      ruoyi-ui/README.md
  2. 5
      ruoyi-ui/package.json
  3. 1
      ruoyi-ui/public/index.html
  4. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js
  5. 11
      ruoyi-ui/vue.config.js

6
ruoyi-ui/README.md

@ -16,6 +16,10 @@
--> -->
## 开发 ## 开发
```
ruoyi版本号 3.7.0
```
```bash ```bash
# 克隆项目 # 克隆项目
git clone https://gitee.com/y_project/RuoYi-Vue git clone https://gitee.com/y_project/RuoYi-Vue
@ -45,7 +49,7 @@ npm install --save el-tree-transfer
npm run dev npm run dev
``` ```
浏览器访问 http://localhost:80 浏览器访问 <http://localhost:80>
## 发布 ## 发布

5
ruoyi-ui/package.json

@ -1,12 +1,13 @@
{ {
"name": "ruoyi", "name": "ruoyi",
"version": "3.7.0", "version": "0.0.1",
"description": "雅典娜", "description": "雅典娜",
"author": "若依", "author": "若依",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"dev": "vue-cli-service serve", "dev": "vue-cli-service serve",
"build:prod": "vue-cli-service build", "build:prod": "vue-cli-service build",
"build:version": "./build/build.sh",
"build:stage": "vue-cli-service build --mode staging", "build:stage": "vue-cli-service build --mode staging",
"preview": "node build/index.js --preview", "preview": "node build/index.js --preview",
"lint": "eslint --ext .js,.vue src" "lint": "eslint --ext .js,.vue src"
@ -151,4 +152,4 @@
"> 1%", "> 1%",
"last 2 versions" "last 2 versions"
] ]
} }

1
ruoyi-ui/public/index.html

@ -5,6 +5,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit"> <meta name="renderer" content="webkit">
<meta name="build" content="<%= process.env.Version %>">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title> <title>

2
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js

@ -70,7 +70,7 @@ export const eventMap = {
try { try {
this.dialogConfig = { this.dialogConfig = {
// 0 有(球机) 1 ⽆(枪机) // 0 有(球机) 1 ⽆(枪机)
component: cameraCtrlMap[JSON.parse(extData.other_config)?.ptzCtrl], component: cameraCtrlMap[JSON.parse(extData.otherConfig)?.ptzCtrl],
data: extData, data: extData,
}; };
} catch (error) {} } catch (error) {}

11
ruoyi-ui/vue.config.js

@ -1,5 +1,8 @@
"use strict"; "use strict";
const path = require("path"); const path = require("path");
const webpack = require("webpack");
const packageJSON = require("./package.json");
function resolve(dir) { function resolve(dir) {
return path.join(__dirname, dir); return path.join(__dirname, dir);
@ -79,6 +82,14 @@ module.exports = {
chainWebpack(config) { chainWebpack(config) {
config.plugins.delete("preload"); // TODO: need test config.plugins.delete("preload"); // TODO: need test
config.plugins.delete("prefetch"); // TODO: need test config.plugins.delete("prefetch"); // TODO: need test
config.plugin("DefinePlugin").use(webpack.DefinePlugin, [
{
"process.env.Version": (() =>
JSON.stringify(
`${new Date().toLocaleString()}-V${packageJSON.version}`
))(),
},
]);
const rootModulesPath = path.resolve("node_modules"); const rootModulesPath = path.resolve("node_modules");
if (config.resolve.modules.store.has(rootModulesPath)) { if (config.resolve.modules.store.has(rootModulesPath)) {

Loading…
Cancel
Save