add eslint working conf
This commit is contained in:
@@ -11,24 +11,26 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import UserAdmin from "./User/UserAdmin";
|
||||
import UserAdmin from './User/UserAdmin'
|
||||
|
||||
export default {
|
||||
name: "DashBoard",
|
||||
components: {
|
||||
UserAdmin
|
||||
},
|
||||
methods: {
|
||||
logout: function () {
|
||||
axios.post('logout')
|
||||
.then(res => {
|
||||
if(res.status ===302 || 401) {
|
||||
window.location.href = '/login'
|
||||
}
|
||||
}).catch(error => {
|
||||
export default {
|
||||
name: 'DashBoard',
|
||||
components: {
|
||||
UserAdmin
|
||||
},
|
||||
methods: {
|
||||
logout: function () {
|
||||
// eslint-disable-next-line no-undef
|
||||
axios.post('logout')
|
||||
.then(res => {
|
||||
// eslint-disable-next-line no-constant-condition
|
||||
if(res.status === 302 || 401) {
|
||||
window.location.href = '/login'
|
||||
}
|
||||
}).catch(() => {
|
||||
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user