Commit 33836267 by 杨昕

test

parent 512a12a2
Pipeline #11165 passed with stages
in 58 seconds
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
<br> <br>
<form id="newForm"> <form id="newForm">
<input type="hidden" name="_token" value="{{csrf_token()}}"> <input type="hidden" name="_token" value="{{csrf_token()}}">
<input type="hidden" name="media_type" value="{{$media["media_type_id"]}}">
{{ method_field('PUT')}} {{ method_field('PUT')}}
<div class="form-group"> <div class="form-group">
...@@ -177,7 +178,7 @@ ...@@ -177,7 +178,7 @@
console.log("formdata",formdata) 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) { if (res.code == 200) {
$('body').toast({ $('body').toast({
position: 'fixed', position: 'fixed',
...@@ -186,7 +187,7 @@ ...@@ -186,7 +187,7 @@
top: '50%' top: '50%'
}); });
setTimeout(function () { setTimeout(function () {
window.location.href = '/web/media_manager'; window.location.href = '/web/media_model';
}, 2000) }, 2000)
} else { } else {
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<div class="row ml20"> <div class="row ml20">
<div class="xblock"> <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> </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