|
@ -64,10 +64,12 @@ |
|
|
<script setup lang='ts'> |
|
|
<script setup lang='ts'> |
|
|
import { onMounted, ref } from 'vue'; |
|
|
import { onMounted, ref } from 'vue'; |
|
|
import iconComponents from '@/assets'; |
|
|
import iconComponents from '@/assets'; |
|
|
|
|
|
import {useContentStore} from "@/stores" |
|
|
import dayjs from 'dayjs'; |
|
|
import dayjs from 'dayjs'; |
|
|
import type { blogInterface } from '@/api/admin'; |
|
|
import type { blogInterface } from '@/api/admin'; |
|
|
import { get } from "@/tools/request" |
|
|
import { get } from "@/tools/request" |
|
|
import router from '@/router'; |
|
|
import router from '@/router'; |
|
|
|
|
|
const store=useContentStore() |
|
|
const randomColor = () => { |
|
|
const randomColor = () => { |
|
|
const labelColor = ref(["processing", "success", "error", "warning", "magenta", "red", "volcano", "orange", "gold", "lime", "green", "cyan", "blue", "geekblue", "purple"]) |
|
|
const labelColor = ref(["processing", "success", "error", "warning", "magenta", "red", "volcano", "orange", "gold", "lime", "green", "cyan", "blue", "geekblue", "purple"]) |
|
|
return labelColor.value[Math.floor(Math.random() * labelColor.value.length)]; |
|
|
return labelColor.value[Math.floor(Math.random() * labelColor.value.length)]; |
|
|