Merge branch 'fix_foton_20231213' into 'master'

Fix foton 20231213

See merge request laws-foton-slrs/foton-laws-system-front!131
This commit is contained in:
高嵩
2023-12-18 04:20:28 +00:00
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -28,8 +28,8 @@ module.exports = {
'no-mixed-spaces-and-tabs': 'error', // 禁止混用空格和 tab缩进
'quotes': ['error', 'single'], // 强制使用单引号
"spaced-comment": ["error", "always"], // 注释后面需要有空格
"prefer-template": "error", // 字符串拼接使用模版字符串 'hello' + world => `hello${world}`
"template-curly-spacing": ["error", "always"], // 模版字符串中{}前后内有一个或多个空格 `hello${ world }` => `hello${ world }`
"prefer-template": "off", // 字符串拼接使用模版字符串 'hello' + world => `hello${world}`
"template-curly-spacing": ["error", "never"], // 模版字符串中{}前后没有空格 `hello${ world }` => `hello${world}` always 有一个或多个空格,never 没有空格
"key-spacing": ["error", { mode: "strict" }], // 对象字面量中冒号的前后空格 { "foo" : 42 } => { "foo": 42 }
"comma-spacing": ["error", { "before": false, "after": true }], // 逗号前面不能有空格,后面需要有空格 [1, 2 , 3 ,4] => [1, 2, 4, 4]
"array-bracket-spacing": ["error","always"], // 数组前后需要有空格 [ 1,2 ] => [ 1,2 ]
+1
View File
@@ -140,6 +140,7 @@ function loginNew (res) {
const userInfoJSON = decodeURIComponent(userInfoStr)
const userInfo = JSON.parse(userInfoJSON)
userInfo.userId = userInfo.usid
userInfo.uName = userInfo.uName || userInfo.uname
store.commit('setToken', userInfo.token)
store.commit('setUserInfo', JSON.stringify(userInfo))
getMenu({ userId: store.getters.userInfo.userId })