ctw 3 months ago
parent
commit
5b5b2bc96d
  1. 6
      package-lock.json
  2. BIN
      ruoyi-ui/src/assets/map-background.png
  3. 12
      ruoyi-ui/src/router/index.js
  4. 1913
      ruoyi-ui/src/views/childRoom/index.vue
  5. 4
      ruoyi-ui/src/views/login.vue
  6. 28
      ruoyi-ui/src/views/selectRoom/index.vue

6
package-lock.json

@ -0,0 +1,6 @@
{
"name": "cesium-map-object",
"lockfileVersion": 3,
"requires": true,
"packages": {}
}

BIN
ruoyi-ui/src/assets/map-background.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 555 KiB

12
ruoyi-ui/src/router/index.js

@ -46,6 +46,18 @@ export const constantRoutes = [
component: () => import('@/views/login'),
hidden: true
},
// 登录跳转选择房间
{
path: '/selectRoom',
component: () => import('@/views/selectRoom'),
hidden: true
},
// 选择房间跳转
{
path: '/childRoom',
component: () => import('@/views/childRoom'),
hidden: true
},
{
path: '/cesiumMap',
component: () => import('@/views/cesiumMap'),

1913
ruoyi-ui/src/views/childRoom/index.vue

File diff suppressed because it is too large

4
ruoyi-ui/src/views/login.vue

@ -144,7 +144,9 @@ export default {
Cookies.remove('rememberMe')
}
this.$store.dispatch("Login", this.loginForm).then(() => {
this.$router.push({ path: this.redirect || "/" }).catch(()=>{})
// this.$router.push({ path: this.redirect || "/" }).catch(()=>{})
//
this.$router.push({ path: this.redirect || "/selectRoom" }).catch(()=>{})
}).catch(() => {
this.loading = false
if (this.captchaEnabled) {

28
ruoyi-ui/src/views/selectRoom/index.vue

@ -0,0 +1,28 @@
<template>
<div>
<el-button @click="go()">跳转</el-button>
<el-button @click="goHome()">跳转</el-button>
</div>
</template>
<script>
//
export default {
data() {
return {
}
},
methods: {
go(){
this.$router.push({ path: this.redirect || "/childRoom" }).catch(()=>{})
},
//
goHome(){
this.$router.push({ path: this.redirect || "/" }).catch(()=>{})
}
}
}
</script>
Loading…
Cancel
Save