log.js 555 B

123456789101112131415161718192021222324
  1. function log() {
  2. mgr.getUser().then((res) => {
  3. if (res) {
  4. var usercode = res.profile.account;
  5. var isSa = res.profile.isSA;
  6. // 内置账号不写访问日志
  7. if (isSa !== "1") {
  8. axios({
  9. method: "post",
  10. url: server + "/ufp/api/visitlog/LogInfo",
  11. data: {
  12. url: "/eap/dashboard/macstatus",
  13. userCode: usercode,
  14. },
  15. })
  16. .then((res) => {
  17. })
  18. .catch((err) => {
  19. console.log(err);
  20. });
  21. }
  22. }
  23. });
  24. }