Minor Changes
This commit is contained in:
@@ -69,7 +69,6 @@ setupCreate()
|
|||||||
|
|
||||||
const setupQuery = () => {
|
const setupQuery = () => {
|
||||||
if(route.query) {
|
if(route.query) {
|
||||||
console.log(route.query)
|
|
||||||
|
|
||||||
Object.keys(route.query).forEach(key => {
|
Object.keys(route.query).forEach(key => {
|
||||||
if(["customer","contract","plant","contact"].includes(key)){
|
if(["customer","contract","plant","contact"].includes(key)){
|
||||||
|
|||||||
@@ -1,10 +1,7 @@
|
|||||||
|
|
||||||
|
|
||||||
export const useZipCheck = async (zip) => {
|
export const useZipCheck = async (zip) => {
|
||||||
const supabase = useSupabaseClient()
|
const supabase = useSupabaseClient()
|
||||||
|
|
||||||
console.log((await supabase.from("citys").select().eq("zip",Number(zip)).maybeSingle()).data)
|
|
||||||
|
|
||||||
const result = (await supabase.from("citys").select().eq("zip",Number(zip)).maybeSingle()).data
|
const result = (await supabase.from("citys").select().eq("zip",Number(zip)).maybeSingle()).data
|
||||||
|
|
||||||
return result ? result.short : null
|
return result ? result.short : null
|
||||||
|
|||||||
Reference in New Issue
Block a user