updated
This commit is contained in:
@@ -123,7 +123,7 @@ export default defineComponent({
|
||||
}, 600),
|
||||
getSearchUrl() {
|
||||
if (this.type_of_search == 0) {
|
||||
const url = "http://127.0.0.1:4056/search/customer";
|
||||
const url = import.meta.env.VITE_BASE_URL + "/search/customer";
|
||||
const params = {
|
||||
q: this.searchTerm,
|
||||
};
|
||||
@@ -131,7 +131,7 @@ export default defineComponent({
|
||||
return `${url}?${searchParams}`;
|
||||
}
|
||||
else if (this.type_of_search == 1) {
|
||||
const url = "http://127.0.0.1:4056/search/customer";
|
||||
const url = import.meta.env.VITE_BASE_URL +"/search/customer";
|
||||
const params = {
|
||||
q: this.searchTerm,
|
||||
};
|
||||
@@ -139,7 +139,7 @@ export default defineComponent({
|
||||
return `${url}?${searchParams}`;
|
||||
}
|
||||
else if (this.type_of_search == 2) {
|
||||
const url = "http://127.0.0.1:4056/search/customer";
|
||||
const url = import.meta.env.VITE_BASE_URL +"/search/customer";
|
||||
const params = {
|
||||
q: this.searchTerm,
|
||||
};
|
||||
@@ -147,7 +147,7 @@ export default defineComponent({
|
||||
return `${url}?${searchParams}`;
|
||||
}
|
||||
else {
|
||||
const url = "http://127.0.0.1:4056/search/customer";
|
||||
const url = import.meta.env.VITE_BASE_URL +"/search/customer";
|
||||
const params = {
|
||||
q: this.searchTerm,
|
||||
};
|
||||
@@ -195,10 +195,7 @@ export default defineComponent({
|
||||
})
|
||||
},
|
||||
getCompany() {
|
||||
|
||||
let path = import.meta.env.VITE_BASE_URL + '/admin/company/' + import.meta.env.VITE_COMPANY_ID;
|
||||
|
||||
|
||||
axios({
|
||||
method: "get",
|
||||
url: path,
|
||||
|
||||
Reference in New Issue
Block a user