Commit 04ae1b3b authored by minseok.park's avatar minseok.park

rollback

parent 8eab06ce
'use strict'
const fetch = require('node-fetch')
let isLogin = false
fetch('https://swlab.bwg.co.kr/web/dms/api/auth/status')
.then((response) => {
if (response.url === 'https://swlab.bwg.co.kr/web/dms/login') {
isLogin = true
}
})
.catch((error) => {
console.error('Error checking login status:', error)
})
module.exports = isLogin
<header class="header">
<nav class="navbar">
<div class="navbar-brand">
{{#if isLogin}}
<a class="navbar-item" href="https://swlab.bwg.co.kr/web/main">
{{else}}
<a class="navbar-item" href="https://swlab.bwg.co.kr/web/dms/home">
{{/if}}
<a class="navbar-item" href="https://swlab.bwg.co.kr">
<i class="navbar-logo"></i>
<div class="navbar-title-contents">
<span class="navbar-title">SWLab</span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment