docs: 优化一些文案

This commit is contained in:
pany 2023-08-28 16:52:17 +08:00
parent a3dce0e0f2
commit 36f8c8acf2
2 changed files with 1 additions and 17 deletions

View File

@ -1,7 +1,6 @@
<script lang="ts" setup> <script lang="ts" setup>
import { h } from "vue" import { h } from "vue"
import { useTheme } from "@/hooks/useTheme" import { useTheme } from "@/hooks/useTheme"
import { resetConfigLayout } from "@/utils"
import { ElNotification } from "element-plus" import { ElNotification } from "element-plus"
// Element Plus // Element Plus
import zhCn from "element-plus/es/locale/lang/zh-cn" import zhCn from "element-plus/es/locale/lang/zh-cn"
@ -23,21 +22,6 @@ ElNotification({
duration: 0, duration: 0,
position: "bottom-right" position: "bottom-right"
}) })
ElNotification({
title: "破坏性更新",
type: "warning",
message: h(
"span",
{
style: "color: teal; cursor: pointer;",
onClick: resetConfigLayout
},
"由于平台 4.1.0 版本新增了多种布局模式,如果第一次出现白屏情况,点击这里或手动前往控制台清理 LocalStorage 缓存数据后刷新页面即可!"
),
duration: 0,
position: "bottom-right",
offset: 150
})
</script> </script>
<template> <template>

View File

@ -26,7 +26,7 @@ const querySuccess = async () => {
// 1. getSuccessApi // 1. getSuccessApi
// 2. getSuccessApi getSuccessApi // 2. getSuccessApi getSuccessApi
const res = await useFullscreenLoading(getSuccessApi)([2, 3, 3]) const res = await useFullscreenLoading(getSuccessApi)([2, 3, 3])
ElMessage.success(`${res.message},传参为${res.data.list}`) ElMessage.success(`${res.message},传参为 ${res.data.list.toString()}`)
} }
const queryError = async () => { const queryError = async () => {