智慧园区web后台管理-vue
zrj
2024-10-26 269b2da9f9a2d1dde4988fe64f79091e2fbcd659
src/store/modules/user.js
@@ -23,6 +23,7 @@
import { formatPath } from '@/router/avue-router';
import { ElMessage } from 'element-plus';
import { encrypt } from '@/utils/sm2';
import md5 from 'js-md5';
const user = {
  state: {
@@ -45,7 +46,7 @@
          userInfo.deptId,
          userInfo.roleId,
          userInfo.username,
          encrypt(userInfo.password),
          md5(userInfo.password),
          userInfo.type,
          userInfo.key,
          userInfo.code