|
@@ -4,7 +4,7 @@
|
|
<div class="login-main">
|
|
<div class="login-main">
|
|
<van-tabs v-model:active="appStore.ownApp">
|
|
<van-tabs v-model:active="appStore.ownApp">
|
|
<van-tab title="水利督察" name="1"></van-tab>
|
|
<van-tab title="水利督察" name="1"></van-tab>
|
|
- <van-tab title="水利稽查" name="2"></van-tab>
|
|
|
|
|
|
+ <van-tab title="水利稽察" name="2"></van-tab>
|
|
</van-tabs>
|
|
</van-tabs>
|
|
<van-form @submit="handleLogin">
|
|
<van-form @submit="handleLogin">
|
|
<van-cell-group>
|
|
<van-cell-group>
|
|
@@ -39,13 +39,12 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script setup>
|
|
<script setup>
|
|
-import { ref, onBeforeUnmount, onMounted, nextTick } from 'vue'
|
|
|
|
-import { showToast } from 'vant'
|
|
|
|
-import { setToken } from '@/utils/auth'
|
|
|
|
-import { useAppStore } from '@/stores/app'
|
|
|
|
-import { useUserStore } from '@/stores/user'
|
|
|
|
-import { loginWithMessage, getCaptchaImage } from '@/api/login'
|
|
|
|
-import { useRouter } from 'vue-router';
|
|
|
|
|
|
+import {nextTick, onBeforeUnmount, onMounted, ref} from 'vue'
|
|
|
|
+import {showToast} from 'vant'
|
|
|
|
+import {useAppStore} from '@/stores/app'
|
|
|
|
+import {useUserStore} from '@/stores/user'
|
|
|
|
+import {getCaptchaImage} from '@/api/login'
|
|
|
|
+import {useRouter} from 'vue-router';
|
|
|
|
|
|
const appStore = useAppStore()
|
|
const appStore = useAppStore()
|
|
const userStore = useUserStore()
|
|
const userStore = useUserStore()
|
|
@@ -141,4 +140,4 @@ onBeforeUnmount(() => {
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
-</style>
|
|
|
|
|
|
+</style>
|