|
|
@ -1262,7 +1262,7 @@ export default {
|
|
|
|
if(location.pathname === '/i/web/compose' && res.data && res.data.length) {
|
|
|
|
if(location.pathname === '/i/web/compose' && res.data && res.data.length) {
|
|
|
|
location.href = '/i/web/post/' + res.data.split('/').slice(-1)[0];
|
|
|
|
location.href = '/i/web/post/' + res.data.split('/').slice(-1)[0];
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
location.href = data;
|
|
|
|
location.href = res.data;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).catch(err => {
|
|
|
|
}).catch(err => {
|
|
|
|
if(err.response) {
|
|
|
|
if(err.response) {
|
|
|
@ -1330,6 +1330,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
closeModal() {
|
|
|
|
closeModal() {
|
|
|
|
$('#composeModal').modal('hide');
|
|
|
|
$('#composeModal').modal('hide');
|
|
|
|
|
|
|
|
this.$emit('close');
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
goBack() {
|
|
|
|
goBack() {
|
|
|
|