Commit 33836267 by 杨昕

test

parent 512a12a2
Pipeline #11165 passed with stages
in 58 seconds
......@@ -43,6 +43,7 @@
<br>
<form id="newForm">
<input type="hidden" name="_token" value="{{csrf_token()}}">
<input type="hidden" name="media_type" value="{{$media["media_type_id"]}}">
{{ method_field('PUT')}}
<div class="form-group">
......@@ -177,7 +178,7 @@
console.log("formdata",formdata)
fetch_response('POST',"/web/media_manager/{{$media['_id']}}", formdata).then(function (res) {
fetch_response('POST',"/web/media_model/{{$media['_id']}}", formdata).then(function (res) {
if (res.code == 200) {
$('body').toast({
position: 'fixed',
......@@ -186,7 +187,7 @@
top: '50%'
});
setTimeout(function () {
window.location.href = '/web/media_manager';
window.location.href = '/web/media_model';
}, 2000)
} else {
......
......@@ -32,7 +32,7 @@
<div class="row ml20">
<div class="xblock">
<button class="btn btn-primary" onclick="x_admin_show('/web/media_manager/create')">
<button class="btn btn-primary" onclick="x_admin_show('/web/media_model/create')">
添加
</button>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment