feat:登出清空数据
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
// 在此不用配置接口前缀
|
// 在此不用配置接口前缀
|
||||||
const isDev = process.env.NODE_ENV === 'development'
|
const isDev = process.env.NODE_ENV === 'development'
|
||||||
const BaseUrl = isDev ? 'http://192.168.26.116:888/admin-api' : 'http://192.168.26.116:888/admin-api'
|
const BaseUrl = isDev ? 'http://192.168.26.116:888/admin-api' : 'http://172.16.46.62:30081/admin-api'
|
||||||
// const BaseUrl = isDev ? 'http://192.168.26.163:48080/admin-api' : 'http://192.168.26.116:888/admin-api'
|
// const BaseUrl = isDev ? 'http://192.168.26.163:48080/admin-api' : 'http://192.168.26.116:888/admin-api'
|
||||||
//
|
//
|
||||||
// const BaseUrl = isDev ? 'http://localhost:9999' : ''
|
// const BaseUrl = isDev ? 'http://localhost:9999' : ''
|
||||||
|
|||||||
@@ -10,15 +10,7 @@ const getDeviceLaboratoryListBy = params => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 获取平板端菜单
|
|
||||||
const getMenuForPAD = () => {
|
|
||||||
return request({
|
|
||||||
url: '/sys/permission/getMenuForPAD',
|
|
||||||
method: 'GET'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
getDeviceLaboratoryListBy,
|
getDeviceLaboratoryListBy
|
||||||
getMenuForPAD
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ import callCheckUpdate from '@/nx/utils/check-update'
|
|||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
const captchaEnable = true
|
const captchaEnable = true
|
||||||
let loginInfo = reactive({
|
let loginInfo = reactive({
|
||||||
username: 'admin',
|
username: 'ytjySjfx1',
|
||||||
password: 'P@ssword25',
|
password: 'P@ssword25',
|
||||||
captchaVerification: ''
|
captchaVerification: ''
|
||||||
})
|
})
|
||||||
@@ -132,6 +132,9 @@ function onCaptchaError(error) {
|
|||||||
})
|
})
|
||||||
loading.value = false
|
loading.value = false
|
||||||
}
|
}
|
||||||
|
onLoad(() => {
|
||||||
|
nx.$store('user').clearUserInfo()
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|||||||
Reference in New Issue
Block a user