Browse Source

配置

release_0.0.3
巴林闲侠 3 years ago
parent
commit
029c516f84
  1. 4
      code/api/app/lib/routes/auth/index.js
  2. 1
      code/web/client/src/sections/auth/containers/cross.jsx

4
code/api/app/lib/routes/auth/index.js

@ -11,8 +11,8 @@ module.exports = function (app, router, opts) {
app.fs.api.logAttr['POST/login'] = { content: '登录', visible: true };
router.post('/login', auth.login);
app.fs.api.logAttr['PUT/logout'] = { content: '登出', visible: false };
router.put('/logout', auth.logout);
app.fs.api.logAttr['POST/logout'] = { content: '登出', visible: false };
router.post('/logout', auth.logout);
// 安心云

1
code/web/client/src/sections/auth/containers/cross.jsx

@ -18,6 +18,7 @@ const Cross = ({ dispatch, actions }) => {
}
}
function storageListen (e) {
console.log(e);
if (e.key == 'fs_iot_cross_user') {
if (!e.newValue) {
// IOT AUTH 退

Loading…
Cancel
Save