去除后台插件列表上传插件程序

This commit is contained in:
pushuo 2022-12-12 09:58:06 +08:00 committed by Edward Yang
parent f55255ba8b
commit cadc91d2da
1 changed files with 4 additions and 23 deletions

View File

@ -2,23 +2,14 @@
@section('title', __('admin/plugin.plugin_list'))
@section('page-title-right')
<a href="{{ admin_route('marketing.index') }}" class="btn btn-outline-info">{{ __('admin/marketing.marketing_list') }}</a>
@endsection
@section('content')
<div id="plugins-app" class="card" v-cloak>
<div class="card-body h-min-600">
<div class="d-flex align-items-center justify-content-between">
<el-upload
class="upload-demo"
action=""
:limit="1"
:show-file-list="false"
:http-request="uploadFile"
accept=".zip"
>
<el-button size="small" type="primary">{{ __('admin/plugin.plugin_upload') }}</el-button>
</el-upload>
<a href="{{ admin_route('marketing.index') }}" class="btn btn-outline-info">{{ __('admin/marketing.marketing_list') }}</a>
</div>
<div class="mt-4 table-push" style="">
<table class="table">
<thead>
@ -87,16 +78,6 @@
});
},
uploadFile(file) {
let formData = new FormData();
formData.append("file", file.file, file.file.name);
$http.post('plugins/import', formData).then((res) => {
layer.msg(res.message)
location.reload();
})
},
installedPlugin(code, type, index) {
const self = this;