watch: {
selected: function (value) {
localStorage.bytomNet = value.value;
- // bytom.System.setupNet(value.value);
+ account.setupNet(value.value);
}
},
mounted() {
testNet = { label: this.$t('main.testNetShort'), value: "testnet" };
this.nets = [mainNet, testNet];
if (localStorage.bytomNet != undefined) {
- // bytom.System.setupNet(localStorage.bytomNet);
if (localStorage.bytomNet == "mainnet") {
this.selected = mainNet;
} else if (localStorage.bytomNet == "testnet") {
this.selected = mainNet;
localStorage.bytomNet = "mainnet";
}
+ account.setupNet(this.selected);
}
};
</script>
\ No newline at end of file
<style scoped>
.protocol {
- height: 385px;
- /* font-size: 12px; */
+ height: 385px;
+ /* font-size: 12px; */
}
.content {
- white-space: pre-wrap;
- word-wrap: break-word;
- max-height: 340px;
- overflow-y: scroll;
- font-family: "Avenir", Helvetica, Arial, sans-serif;
+ white-space: pre-wrap;
+ word-wrap: break-word;
+ max-height: 340px;
+ overflow-y: scroll;
+ font-family: "Avenir", Helvetica, Arial, sans-serif;
+}
+.content::-webkit-scrollbar {
+ width: 0 !important;
}
</style>
<template>
<section class="login-content protocol">
<div class="title" style="font-size: 17px;">{{ $t('protocol.title') }}</div>
<div style="font-size: 11px; width: 100%;">
- <pre class="content">{{ $t('protocol.content') }}</pre>
+ <pre class="content">{{ $t('protocol.content') }}</pre>
</div>
</section>
<section class="welcome-bottom bg-green">
<script>
export default {
- name: "",
- data() {
- return {};
- },
- methods: {
- confirm: function() {
- this.$emit("next");
+ name: "",
+ data() {
+ return {};
+ },
+ methods: {
+ confirm: function () {
+ this.$emit("next");
+ }
}
- }
};
</script>
\ No newline at end of file