|
@@ -30,13 +30,17 @@ import store from "@/store";
|
|
|
|
|
|
// ip 定位?
|
|
|
// 要在用户登录后调用
|
|
|
-export function createUserLog() {
|
|
|
+export function createUserDetailLog() {
|
|
|
try {
|
|
|
const user = store.state.user;
|
|
|
logger.push("userName", user.displayName);
|
|
|
logger.push("userId", user.id);
|
|
|
logger.push("rootOrgName", user.rootOrgName);
|
|
|
logger.push("rootOrgId", user.rootOrgId);
|
|
|
+ const uuidForEcs = localStorage.getItem("uuidForEcs");
|
|
|
+ if (uuidForEcs) {
|
|
|
+ logger.push("uuidForEcs", uuidForEcs);
|
|
|
+ }
|
|
|
logger.logger();
|
|
|
} catch (error) {
|
|
|
console.log(error);
|
|
@@ -47,6 +51,10 @@ export function createUserLog() {
|
|
|
export function createLog(logs) {
|
|
|
try {
|
|
|
const user = store.state.user;
|
|
|
+ const uuidForEcs = localStorage.getItem("uuidForEcs");
|
|
|
+ if (uuidForEcs) {
|
|
|
+ logger.push("uuidForEcs", uuidForEcs);
|
|
|
+ }
|
|
|
if (user) {
|
|
|
logger.push("userId", user.id);
|
|
|
}
|