2021-05-13 10:56:04 +08:00
|
|
|
<template>
|
|
|
|
<div id="main" class="app-main">
|
|
|
|
<router-view></router-view>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2021-06-03 14:35:19 +08:00
|
|
|
import {v4 as uuidv4} from 'uuid';
|
2021-05-13 10:56:04 +08:00
|
|
|
export default {
|
2021-06-03 14:35:19 +08:00
|
|
|
mounted() {
|
|
|
|
let uuid = this.getStore('uuid');
|
|
|
|
if (!uuid) {
|
|
|
|
uuid = uuidv4();
|
|
|
|
this.setStore('uuid', uuid);
|
|
|
|
}
|
2021-05-13 10:56:04 +08:00
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
html,
|
|
|
|
body {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
background: #f0f0f0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.app-main {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.br button {
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.operation button {
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ivu-btn-text:focus {
|
|
|
|
box-shadow: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ivu-tag {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
</style>
|