diff --git a/src/components/aplayerView.vue b/src/components/aplayerView.vue index 5934b97..7569d2e 100644 --- a/src/components/aplayerView.vue +++ b/src/components/aplayerView.vue @@ -40,7 +40,7 @@ onMounted(async () => { pic: i.pic, lrc: i.lrc, }); - console.log('>>>>>',data.audio); + // console.log('>>>>>',data.audio); }); diff --git a/src/views/console/menu/index.vue b/src/views/console/menu/index.vue index 43cddbc..fe644d1 100644 --- a/src/views/console/menu/index.vue +++ b/src/views/console/menu/index.vue @@ -196,7 +196,13 @@ function createColumns({ edit, remove, view }) { align: 'center', key: "menuDesc", ellipsis: { - tooltip: true + tooltip: { + scorllable: true, + contentStyle: { + maxWidth: '45vw', + maxHeight: '70vh', + }, + }, } }, { @@ -246,9 +252,14 @@ function createColumns({ edit, remove, view }) { function addMenu() { mshow.value = true } -onMounted(() => { +onMounted(async () => { getClass() getList() + + + const res = await fetch('http://www.ghost4me.com') + const data = await res.text() + console.log(data); }) async function getList() { // 获取文章列表 diff --git a/src/views/home/navMenu.vue b/src/views/home/navMenu.vue index 0b6e521..2e1cd6a 100644 --- a/src/views/home/navMenu.vue +++ b/src/views/home/navMenu.vue @@ -55,7 +55,7 @@ function formatNav(list) { exp: false }) }) - console.log(result); + // console.log(result); return chunkArrayInGroups(result, 4) diff --git a/src/views/home/search.vue b/src/views/home/search.vue index 03f900b..6a52f77 100644 --- a/src/views/home/search.vue +++ b/src/views/home/search.vue @@ -1,11 +1,19 @@ @@ -14,6 +22,7 @@ import baidu from '@/assets/bro/baidu.png'; import bing from '@/assets/bro/bing.png'; import google from '@/assets/bro/google.png'; +import { onMounted } from 'vue'; //mark data const engine = ref('https://cn.bing.com/search?q=') const searchValue = ref('') @@ -21,13 +30,33 @@ const selectOptions = [ { label: '必应', value: 'https://cn.bing.com/search?q=' }, { label: '谷歌', value: 'https://www.google.com/search?q=' }, { label: '百度', value: 'https://www.baidu.com/s?wd=' }, + { label: '翻译', value: '#' } ] const img = ref(bing) +const smodel = ref(false) +const input = ref(null) +const mos = ref(null) +const inWidth = ref(0) +const inHeight = ref(0) +const activeIndex = ref(0) + //mark method // https://cn.bing.com/search?q=111 -function toSearch() { +function toSearch(i) { + console.log(666666); if (!searchValue.value) return - window.open(engine.value + searchValue.value, "_blank") + if (i == 3) { + $msg.info('翻译功能正在开发中') + return + } + + window.open(selectOptions[i].value + searchValue.value, "_blank") +} +function inputBlur() { + setTimeout(() => { + smodel.value = false + }, 200); + } function updateEngine(v) { console.log(v); @@ -45,7 +74,13 @@ function updateEngine(v) { } //mark 周期、内置函数等 - +onMounted(() => { + inWidth.value = input.value.$el.offsetWidth + inHeight.value = input.value.$el.offsetHeight + console.log(mos.value); + mos.value.style.width = inWidth.value + 'px' + mos.value.style.top = inHeight.value + 'px' +}) + \ No newline at end of file