Browse Source

修改提交

wangqin
Joe 10 months ago
parent
commit
b4042fb7b1
  1. 6
      ruoyi-ui/README.md
  2. 3
      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
# 克隆项目
git clone https://gitee.com/y_project/RuoYi-Vue
@ -45,7 +49,7 @@ npm install --save el-tree-transfer
npm run dev
```
浏览器访问 http://localhost:80
浏览器访问 <http://localhost:80>
## 发布

3
ruoyi-ui/package.json

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

1
ruoyi-ui/public/index.html

@ -5,6 +5,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<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">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>

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

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

11
ruoyi-ui/vue.config.js

@ -1,5 +1,8 @@
"use strict";
const path = require("path");
const webpack = require("webpack");
const packageJSON = require("./package.json");
function resolve(dir) {
return path.join(__dirname, dir);
@ -79,6 +82,14 @@ module.exports = {
chainWebpack(config) {
config.plugins.delete("preload"); // 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");
if (config.resolve.modules.store.has(rootModulesPath)) {

Loading…
Cancel
Save