diff --git a/.env.development b/.env.development index a993606..cd2649f 100644 --- a/.env.development +++ b/.env.development @@ -2,6 +2,6 @@ ENV = 'development' VITE_APP_ENV = 'development' -#VITE_APP_BASE_URL = 'http://127.0.0.1:7777' -VITE_APP_BASE_URL = 'https://www.hxyouzi.com' +VITE_APP_BASE_URL = 'http://127.0.0.1:7777' +# VITE_APP_BASE_URL = 'https://www.hxyouzi.com' diff --git a/src/api/nav/index.js b/src/api/nav/index.js index 38aae9c..0825a8d 100644 --- a/src/api/nav/index.js +++ b/src/api/nav/index.js @@ -20,11 +20,8 @@ export function addMenu(data) { // deleteMenu export function deleteMenu(id) { return request({ - url: '/nav/menu', + url: '/nav/menu/'+id, method: 'delete', - params:{ - id - } }); } diff --git a/src/components/aplayerView.vue b/src/components/aplayerView.vue index 15cff7d..26e3826 100644 --- a/src/components/aplayerView.vue +++ b/src/components/aplayerView.vue @@ -43,7 +43,7 @@ onMounted(async () => { // console.log('>>>>>',data.audio); }); - + // 创建一个音乐播放器实例,并挂载到DOM上,同时进行相关配置 const ap = new APlayer({ container: document.getElementById("aplayer"), @@ -67,7 +67,10 @@ onMounted(async () => { flag = true; } }); - // d.click(); + + // 获取当前屏幕宽度 + const width = document.documentElement.clientWidth; // 获取屏幕宽度 + if (width < 767) d.click(); }); \ No newline at end of file diff --git a/src/views/home/side.vue b/src/views/home/side.vue index 58ee651..250977a 100644 --- a/src/views/home/side.vue +++ b/src/views/home/side.vue @@ -62,8 +62,7 @@
-
+
@@ -74,23 +73,11 @@
{{ item.hotValue }}
-
+
{{ item.keyword }}
{{ item.hotValue }}
- -
- 更多 - - -
-
- -
- 收起 -
-
@@ -102,7 +89,6 @@ import offwork from '@/assets/offwork.webp'; import onwork from '@/assets/onwork.webp'; import hot from "@/icon/hot.svg"; -import more from "@/icon/more.svg"; import { formatTime } from '@/util/index.js'; import ww from 'chinese-workday'; import { onMounted, ref } from 'vue'; @@ -127,7 +113,7 @@ const jq = await $http.wea.getJq() const j = jq.data.solarTerms.slice(0, 2) const jNum = jqs.indexOf(j) + 1 jqImg.value = 'https://www.hxyouzi.com/img/jieqi/' + jNum + '.jpg' -const isBaidu = ref(true); +// const isBaidu = ref(true); const baidu = ref({}) // const holi = await $http.wea.getNextHoliday()