Browse Source

ElNotification弹框

master
是小王呀\24601 2 months ago
parent
commit
168c3feb57
  1. 7
      src/components/AppHeader.vue

7
src/components/AppHeader.vue

@ -80,6 +80,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { ElNotification } from 'element-plus'
import { ref, computed, onMounted } from 'vue' import { ref, computed, onMounted } from 'vue'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import { switchLanguage } from '@/i18n' import { switchLanguage } from '@/i18n'
@ -133,7 +134,11 @@ const changeLanguage = (lang: string) => {
} }
function handleClick(item) { function handleClick(item) {
if (item.key === 'home' || item.key === 'renewal') { if (item.key === 'home' || item.key === 'renewal') {
alert('功能正在开发中') // alert('')]
ElNotification({
title: '功能还未开放',
message: "",
})
router.push('/') router.push('/')
} else { } else {
router.push(item.path) router.push(item.path)

Loading…
Cancel
Save