You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
657 B
37 lines
657 B
# 项目启动 |
|
|
|
## node版本 |
|
> 14.x.x |
|
|
|
## install |
|
> `npm install` |
|
|
|
## 修改服务器链接配置 |
|
> `vue.config.js`文件的`devServer`配置中 |
|
|
|
## run |
|
> `npm run serve` |
|
|
|
# 加密 |
|
|
|
## oauth2加密配置 |
|
> website.js 配置如下 |
|
> |
|
``` javascript |
|
// 使用后端工程 @org.springblade.test.Sm2KeyGenerator 获取,需和后端配置保持一致 |
|
oauth2: { |
|
publicKey: 'xxxxx', |
|
} |
|
``` |
|
|
|
## 报文加密配置 |
|
> crypto.js 配置如下 |
|
> |
|
``` javascript |
|
// 使用@org.springblade.test.CryptoKeyGenerator获取,需和后端配置保持一致 |
|
export default class crypto { |
|
static cryptoKey = 'xxxxx'; |
|
static aesKey = 'xxxxx'; |
|
static desKey = 'xxxxx'; |
|
} |
|
```
|
|
|