no message

This commit is contained in:
A1300399510
2023-12-25 18:39:49 +08:00
parent 4607702bdc
commit c80cee6eb0
11 changed files with 879 additions and 389 deletions

View File

@@ -107,7 +107,6 @@
<script setup>
import zhCn from "element-plus/dist/locale/zh-cn.mjs"
console.log("zhCn", zhCn)
const state1 = ref("")
@@ -125,6 +124,21 @@ const getInit = () => {
}
const querySearch = (queryString, cb) => {
// https://offer.gter.net/miniprogram/InterviewExperience/schoolSearch
publishSchoolSearchHttp({ keyword: queryString }).then(res => {
// console.log("res", res)
if (res.code != 200) return
let data = res.data
console.log(data, "data")
data.forEach(element => {
console.log(element, "element")
element['value']
})
cb(data)
})
return
const results = queryString ? restaurants.value.filter(createFilter(queryString)) : restaurants.value
// call callback function to return suggestions
cb(results)
@@ -137,13 +151,13 @@ const createFilter = queryString => {
}
const loadAll = () => {
return [
{value: "vue", link: "https://github.com/vuejs/vue"},
{value: "element", link: "https://github.com/ElemeFE/element"},
{value: "cooking", link: "https://github.com/ElemeFE/cooking"},
{value: "mint-ui", link: "https://github.com/ElemeFE/mint-ui"},
{value: "vuex", link: "https://github.com/vuejs/vuex"},
{value: "vue-router", link: "https://github.com/vuejs/vue-router"},
{value: "babel", link: "https://github.com/babel/babel"},
{ value: "vue", link: "https://github.com/vuejs/vue" },
{ value: "element", link: "https://github.com/ElemeFE/element" },
{ value: "cooking", link: "https://github.com/ElemeFE/cooking" },
{ value: "mint-ui", link: "https://github.com/ElemeFE/mint-ui" },
{ value: "vuex", link: "https://github.com/vuejs/vuex" },
{ value: "vue-router", link: "https://github.com/vuejs/vue-router" },
{ value: "babel", link: "https://github.com/babel/babel" },
]
}