...
|
...
|
@@ -103,6 +103,18 @@ |
|
|
});
|
|
|
}
|
|
|
|
|
|
function clearCache(url) {
|
|
|
var cloud = ['qiniu', 'qcloud', 'aliyun'];
|
|
|
|
|
|
cloud.forEach(function(val) {
|
|
|
$.post('/cdn_cache/clear', {
|
|
|
query_uri: url,
|
|
|
object_type: 'File',
|
|
|
cloud: val
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
|
|
|
$('.pannel-option').on('click', '.tooltips', function() {
|
|
|
var $this = $(this),
|
|
|
$par = $this.parent(),
|
...
|
...
|
@@ -118,6 +130,7 @@ |
|
|
}, function(res) {
|
|
|
if (res.code === 200) {
|
|
|
getManifest(res.data.url);
|
|
|
clearCache(res.data.url);
|
|
|
$edit.hide();
|
|
|
} else {
|
|
|
$par.addClass('pannel-edit');
|
...
|
...
|
|