[PROMOTE] 晉升 dev HTTPS 協定混合內容修正至 demo 環境
1. 晉升 ads/index.blade.php 的 AJAX 分頁請求同域協定校正。 2. 晉升 products/index.blade.php 的 AJAX 分頁請求同域協定校正。
This commit is contained in:
commit
73936a5c5f
@ -875,6 +875,11 @@ $baseRoute = 'admin.data-config.advertisements';
|
|||||||
|
|
||||||
async fetchPage(url) {
|
async fetchPage(url) {
|
||||||
if (!url || url === window.location.href) return;
|
if (!url || url === window.location.href) return;
|
||||||
|
const urlObj = new URL(url, window.location.origin);
|
||||||
|
if (urlObj.host === window.location.host) {
|
||||||
|
urlObj.protocol = window.location.protocol;
|
||||||
|
}
|
||||||
|
url = urlObj.toString();
|
||||||
this.isLoading = true;
|
this.isLoading = true;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -1481,4 +1486,4 @@ $baseRoute = 'admin.data-config.advertisements';
|
|||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
@endsection
|
@endsection
|
||||||
|
|||||||
@ -1023,6 +1023,9 @@ hover:bg-slate-100 dark:hover:bg-white/5 rounded-lg flex items-center justify-be
|
|||||||
} else {
|
} else {
|
||||||
// Ensure URL has tab and _ajax params
|
// Ensure URL has tab and _ajax params
|
||||||
const urlObj = new URL(url, window.location.origin);
|
const urlObj = new URL(url, window.location.origin);
|
||||||
|
if (urlObj.host === window.location.host) {
|
||||||
|
urlObj.protocol = window.location.protocol;
|
||||||
|
}
|
||||||
urlObj.searchParams.set('tab', tab);
|
urlObj.searchParams.set('tab', tab);
|
||||||
urlObj.searchParams.set('_ajax', '1');
|
urlObj.searchParams.set('_ajax', '1');
|
||||||
url = urlObj.toString();
|
url = urlObj.toString();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user