Merge pull request #6410 from devansh-webkul/country-data
API Route Updated #6333
This commit is contained in:
commit
d13444fd08
|
|
@ -201,7 +201,7 @@
|
|||
},
|
||||
|
||||
fetchCountries: function () {
|
||||
let countriesEndPoint = `${this.$root.baseUrl}/api/countries?pagination=0`;
|
||||
let countriesEndPoint = `${this.$root.baseUrl}/api/countries?pagination=0&sort=id&order=asc`;
|
||||
|
||||
this.$http.get(countriesEndPoint)
|
||||
.then(response => {
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@
|
|||
data-vv-as=""{{ __('shop::app.checkout.onepage.country') }}""
|
||||
@change="validateForm('address-form')">
|
||||
|
||||
<option value=""></option>
|
||||
<option value="" disabled>{{ __('ui::form.select-attribute', ['attribute' => __('shop::app.checkout.onepage.country')]) }}</option>
|
||||
|
||||
<option v-for='(country, index) in countries' :value="country.code">
|
||||
@{{ country.name }}
|
||||
|
|
@ -431,7 +431,7 @@
|
|||
data-vv-as=""{{ __('shop::app.checkout.onepage.country') }}""
|
||||
@change="validateForm('address-form')">
|
||||
|
||||
<option value=""></option>
|
||||
<option value="" disabled>{{ __('ui::form.select-attribute', ['attribute' => __('shop::app.checkout.onepage.country')]) }}</option>
|
||||
|
||||
<option v-for='(country, index) in countries' :value="country.code" v-text="country.name"></option>
|
||||
</select>
|
||||
|
|
|
|||
Loading…
Reference in New Issue