ticket debug store and show ticket

This commit is contained in:
saeid
2019-07-02 10:53:21 +04:30
parent 870d736281
commit 579cab4e33
8 changed files with 67025 additions and 33 deletions
@@ -23,7 +23,7 @@
import { ApiService } from "@/services";
import { urls } from "@/config/urls";
import toast from "@/services/global/toast.service";
import { mapMutations } from "vuex";
export default {
data() {
return {
@@ -47,11 +47,10 @@ export default {
this.form.user_id = this.userId;
},
methods: {
...mapMutations("modal", ["closeModal"]),
async register() {
if(this.userId > 0) {
const result = await ApiService.post(
urls.showMessages(this.userId), this.form
);
const result = await ApiService.post( urls.storeMessages, this.form );
if (result && result.status == 200) {
this.closeModal();
}