new
This commit is contained in:
@@ -94,7 +94,7 @@ import io from 'socket.io-client'
|
||||
const { mapState, mapGetters, mapActions, mapMutations } = createNamespacedHelpers('chain')
|
||||
const socketUrl = `ws://${location.hostname}:60000`
|
||||
|
||||
Vue.use(VueSocketio, io(socketUrl), store)
|
||||
// Vue.use(VueSocketio, io(socketUrl), store)
|
||||
|
||||
export default {
|
||||
name: 'Chain',
|
||||
@@ -110,14 +110,14 @@ export default {
|
||||
]),
|
||||
...mapGetters([]),
|
||||
},
|
||||
sockets: {
|
||||
connect() {
|
||||
console.log('socket connected')
|
||||
},
|
||||
newBlock(msg) {
|
||||
this.addNewBlock(msg)
|
||||
},
|
||||
},
|
||||
// sockets: {
|
||||
// connect() {
|
||||
// console.log('socket connected')
|
||||
// },
|
||||
// newBlock(msg) {
|
||||
// this.addNewBlock(msg)
|
||||
// },
|
||||
// },
|
||||
|
||||
methods: {
|
||||
...mapActions([
|
||||
@@ -133,7 +133,7 @@ export default {
|
||||
},
|
||||
|
||||
mounted() {
|
||||
this.queryBlockList()
|
||||
// this.queryBlockList()
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<div class="side-menus" :class="{ collapsed: sideCollapsed || !isLogin }">
|
||||
<div class="side-title">
|
||||
<img src="../assets/images/logo.png" />
|
||||
<span class="white--text">TIME IN CHAIN</span>
|
||||
<span class="white--text">VIC</span>
|
||||
</div>
|
||||
|
||||
<div
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div class="login-page">
|
||||
<img src="../assets/images/logo.png">
|
||||
|
||||
<h1 class="white--text">{{ $t('login.title') }}</h1>
|
||||
<h1 class="white--text"> VIC后台 </h1>
|
||||
|
||||
<v-text-field
|
||||
color="secondary"
|
||||
@@ -10,14 +10,26 @@
|
||||
single-line
|
||||
:error="inputError"
|
||||
:error-messages="errorMnemonic"
|
||||
:value="mnemonic"
|
||||
:value="user"
|
||||
:loading="signing"
|
||||
:renewing="renewing"
|
||||
@input="updateMnemonic"
|
||||
label="用户名" />
|
||||
|
||||
<v-text-field
|
||||
color="secondary"
|
||||
dark autofocus
|
||||
single-line
|
||||
:error="inputError"
|
||||
:error-messages="errorMnemonic"
|
||||
:value="passwd"
|
||||
:loading="signing"
|
||||
:renewing="renewing"
|
||||
@input="updateMnemonic"
|
||||
@keyup.13="login"
|
||||
:label="$t('login.inputLabel')" />
|
||||
label="密码" />
|
||||
|
||||
<v-select
|
||||
<!-- <v-select
|
||||
color="secondary" dark
|
||||
prepend-icon="language"
|
||||
:value="currentLang"
|
||||
@@ -25,7 +37,7 @@
|
||||
:items="supportLangs"
|
||||
item-value="code"
|
||||
item-text="label"
|
||||
/>
|
||||
/> -->
|
||||
|
||||
<div class="loginSecword">
|
||||
<v-btn :loading="signing" dark large color="transparent" @click="login">
|
||||
@@ -35,9 +47,9 @@
|
||||
<!-- <v-btn :renewing="renewing" dark large color="transparent" @click="createSecword">
|
||||
{{ $t('login.secwordBtn') }}
|
||||
</v-btn> -->
|
||||
<v-btn :renewing="renewing" dark large color="transparent" @click="createSecword">
|
||||
<!-- <v-btn :renewing="renewing" dark large color="transparent" @click="createSecword">
|
||||
{{ $t('login.secwordBtn') }}
|
||||
</v-btn>
|
||||
</v-btn> -->
|
||||
|
||||
</div>
|
||||
|
||||
@@ -58,7 +70,8 @@ export default {
|
||||
|
||||
computed: {
|
||||
...mapState([
|
||||
'mnemonic',
|
||||
'user',
|
||||
'passwd',
|
||||
'errorMnemonic',
|
||||
'signing',
|
||||
'renewing',
|
||||
|
||||
Reference in New Issue
Block a user