permission.js 178 Bytes
(function() {
  console.log('location', location, Cookies.get('atoken'))
  if (!Cookies.get('atoken')) {
    window.location.replace(window.location.href + 'login.html')
  }
})()