no message
This commit is contained in:
@@ -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" },
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user