南网env环境变量变更
This commit is contained in:
parent
eaecddaae6
commit
db95f3fa4b
|
|
@ -5,4 +5,7 @@ VUE_APP_TITLE = 施工装备管理系统
|
||||||
ENV = 'production'
|
ENV = 'production'
|
||||||
|
|
||||||
# 若依管理系统/生产环境
|
# 若依管理系统/生产环境
|
||||||
VUE_APP_BASE_API = '/gl/dev-api' # 南网需加上/gl
|
VUE_APP_BASE_API=dev-api
|
||||||
|
|
||||||
|
# 南网需加上/gl
|
||||||
|
# VUE_APP_BASE_API = '/gl/dev-api'
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ import { Notification, MessageBox, Message, Loading } from 'element-ui'
|
||||||
const secretKey = 'CCNWrpassWordKey'
|
const secretKey = 'CCNWrpassWordKey'
|
||||||
|
|
||||||
async function encryptData(data, keyStr) {
|
async function encryptData(data, keyStr) {
|
||||||
|
try {
|
||||||
const keyUint8 = new TextEncoder().encode(keyStr);
|
const keyUint8 = new TextEncoder().encode(keyStr);
|
||||||
const key = await crypto.subtle.importKey(
|
const key = await crypto.subtle.importKey(
|
||||||
'raw',
|
'raw',
|
||||||
|
|
@ -26,6 +27,9 @@ async function encryptData(data, keyStr) {
|
||||||
combined.set(new Uint8Array(cipherTextBuffer), iv.length);
|
combined.set(new Uint8Array(cipherTextBuffer), iv.length);
|
||||||
|
|
||||||
return btoa(String.fromCharCode.apply(null, combined));
|
return btoa(String.fromCharCode.apply(null, combined));
|
||||||
|
} catch (error) {
|
||||||
|
console.log('🚀 ~ encryptData ~ error:', error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const user = {
|
const user = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue