-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.vue
More file actions
34 lines (32 loc) · 1.4 KB
/
index.vue
File metadata and controls
34 lines (32 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<template>
<div
class="flex items-center btn-assistant hover:bg-[#4A238E] cursor-pointer relative px-3 rounded-sm"
@click="toggleSidebar"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="20"
height="20"
viewBox="0 0 1024 1024"
class="mr-1"
>
<path
fill="currentColor"
d="M512 85.333333c235.648 0 426.666667 191.018667 426.666667 426.666667 0 231.68-184.618667 420.181333-414.72 426.496L512 938.666667H42.666667l147.072-147.029334A425.002667 425.002667 0 0 1 85.333333 512C85.333333 276.352 276.352 85.333333 512 85.333333z m0 85.333334a341.333333 341.333333 0 0 0-341.333333 341.333333c0 78.805333 26.709333 153.258667 74.794666 213.248l8.704 10.410667 52.138667 60.074666L248.661333 853.333333h262.186667l10.752-0.128A341.333333 341.333333 0 0 0 512 170.666667zM364.8 597.333333c29.866667 50.773333 84.053333 85.333333 147.2 85.333334a169.813333 169.813333 0 0 0 142.336-77.44L659.2 597.333333h71.253333a234.453333 234.453333 0 0 1-433.194666 8.96L293.546667 597.333333h71.253333z"
/>
</svg>
<span class="block leading-8 text-sm">{{ $t('app.assistant') }}</span>
</div>
</template>
<script setup lang="ts">
import { useSidebarStore } from '../../stores/sidebarStore'
const sidebarStore = useSidebarStore()
const toggleSidebar = () => {
sidebarStore.toggleSidebar()
}
</script>
<style scoped>
.block {
display: none;
}
</style>