jinx пре 3 година
родитељ
комит
1961c35af7
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      platform-admin/src/main/webapp/js/sys/bindAccount.js

+ 2 - 0
platform-admin/src/main/webapp/js/sys/bindAccount.js

@@ -48,6 +48,7 @@ var vm = new Vue({
           url: '../sys/user/bind4dkkUser',
           url: '../sys/user/bind4dkkUser',
           data: data,
           data: data,
           dataType: 'json',
           dataType: 'json',
+          headers: { token: localStorage.getItem('token') },
           success: function (result) {
           success: function (result) {
             if (result.code == 0) {
             if (result.code == 0) {
               console.log(result)
               console.log(result)
@@ -80,6 +81,7 @@ var vm = new Vue({
           $.ajax({
           $.ajax({
             type: 'POST',
             type: 'POST',
             url: '../sys/user/unBind4dkkUser',
             url: '../sys/user/unBind4dkkUser',
+            headers: { token: localStorage.getItem('token') },
             data: { fdkkUser: vm.info.fdkkUser },
             data: { fdkkUser: vm.info.fdkkUser },
             dataType: 'json',
             dataType: 'json',
             success: function (result) {
             success: function (result) {