Skip to content

Commit e818a24

Browse files
committed
https修复
1 parent ae15100 commit e818a24

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

src/Actions/BaseAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class BaseAction extends Component implements JsonSerializable
3838
*/
3939
public function __construct()
4040
{
41-
$this->resource = url(request()->getPathInfo());
41+
$this->resource = admin_api_url(request()->path());
4242
}
4343

4444
/**

src/Grid.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ public function jsonSerialize()
367367
} else {
368368
$viewData['componentName'] = $this->componentName;
369369
$viewData['routers'] = [
370-
'resource' => url(request()->getPathInfo())
370+
'resource' => admin_api_url(request()->path()),
371371
];
372372
$viewData['keyName'] = $this->keyName;
373373
$viewData['selection'] = $this->attributes->selection;

webpack.mix.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,5 @@ mix
2525
extractVueStyles: false,
2626
processCssUrls: false,
2727
})
28-
.disableNotifications()
28+
.disableNotifications().version();
2929

30-
if (mix.inProduction()) {
31-
mix.version();
32-
}

0 commit comments

Comments
 (0)