Skip to content

Commit

Permalink
refactor: 优化网站运行时间组件
Browse files Browse the repository at this point in the history
  • Loading branch information
wk-cloud committed Jul 9, 2023
1 parent f81382b commit 094e48d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bluebell_frontend/src/components/TimeMeter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
</template>

<script>
import { runTime } from "@/utils/runTime"
export default {
name: 'TimeMeter',
data() {
Expand All @@ -22,9 +23,7 @@ export default {
},
methods: {
init() {
let free = new this.Free();
// 设置网站运行时间
free.dateUtils.runTime({
runTime({
el: '.run-time',
timeStamp: this.runTime.getTime(),
desc: '运行时间:'
Expand Down

0 comments on commit 094e48d

Please sign in to comment.