<template>
  <el-tooltip effect="dark" content="锁屏" placement="bottom" :show-after="200">
    <div class="theme-setting toolbar-icon-container default-btn" @click="handleLock">
      <i :class="'iconfont iconLock_light'" class="toolBar-icon"></i>
    </div>
  </el-tooltip>
</template>

<script setup lang="ts">
// import mittBus from "@/utils/mittBus";
import { useLockStore } from "@/stores/modules/lock";

const lockStore = useLockStore();
const handleLock = () => {
  lockStore.setLockInfo({
    isLock: true
  });
};
</script>
