forked from microzz/vue-chat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.vue
46 lines (38 loc) · 1.16 KB
/
App.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<template>
<div id="app">
<!-- <keep-alive> -->
<router-view></router-view>
<!-- </keep-alive> -->
</div>
</template>
<script>
import Chatting from './components/Chatting/Chatting.vue';
import Login from './components/Login/Login.vue';
export default {
name: 'app',
components: {
Chatting,
Login,
},
beforeCreate() {
console.log("%c Powered by Zhaohui - microzz.com","background-image:-webkit-gradient( linear, left top,right top, color-stop(0, #00a419),color-stop(0.15, #f44336), color-stop(0.29, #ff4300),color-stop(0.3, #AA00FF),color-stop(0.4, #8BC34A), color-stop(0.45, #607D8B),color-stop(0.6, #4096EE), color-stop(0.75, #D50000),color-stop(0.9, #4096EE), color-stop(1, #FF1A00));color:transparent;-webkit-background-clip:text;font-size:13px;");
},
created() {
localStorage.addr = '未知';
this.axios.get('https://zhaoplus.com/api/ip')
.then(result => {
if (result.data.content.address) {
localStorage.addr = result.data.content.address;
}
})
}
}
</script>
<style lang="scss">
@import "./common/style/base.scss";
#app {
position: relative;
width: 100%;
height: 100%;
}
</style>