Commit c066abdb by pangchong

feat: 提交

parent 9e518af4
import useUserStore from 'mocp/store/user'
const baseURL = 'https://hna-platform.anyremote.cn' //测试
// const baseURL = 'https://hna-platform.anyremote.cn' //测试
// const baseURL = 'https://moc.hnatechnic.com/api' //生产
// const baseURL = 'http://10.123.48.67/api' //Amms内网
// const baseURL = 'https://hnaelbtest.hnatechnic.com/mocptest/api' //内网
const baseURL = 'https://hnaelbtest.hnatechnic.com/mocptest/api' //内网
class ServiceLoading {
open(loading) {
......
......@@ -2,8 +2,8 @@ import { ref, reactive } from 'vue'
export const loginFormRef = ref()
//表单数据
export const loginForm = reactive({
username: 'devzj3', //devzj3
password: 'Ifar2016_0525', //Ifar_9527008 / Ifar2016_0525
username: '', //devzj3
password: '', //Ifar_9527008 / Ifar2016_0525
verifyCode: ''
})
export const showLoad = ref(false)
......
......@@ -76,13 +76,13 @@ const handleLogin = async () => {
loading.value = true
await login()
if (userStore.token) {
// //加入席位权限
// await getUserSeatList()
// if (userStore.seatId) {
// await Promise.all([getSeatPermission(), getConfigData()])
// } else {
// userStore.setState('seatPermission', [])
// }
//加入席位权限
await getUserSeatList()
if (userStore.seatId) {
await Promise.all([getSeatPermission(), getConfigData()])
} else {
userStore.setState('seatPermission', [])
}
//跳转工作台
uni.$mocpJump.redirectTo('/tab/index')
}
......
......@@ -62,4 +62,7 @@ const goMyToDo = () => {
</script>
<style lang="scss" scoped>
@import '../constants/panel-navbar.scss';
:deep(._block) {
display: flex !important;
}
</style>
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