Explorar el Código

更新headers token

jinx hace 3 años
padre
commit
1961c35af7
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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',
           data: data,
           dataType: 'json',
+          headers: { token: localStorage.getItem('token') },
           success: function (result) {
             if (result.code == 0) {
               console.log(result)
@@ -80,6 +81,7 @@ var vm = new Vue({
           $.ajax({
             type: 'POST',
             url: '../sys/user/unBind4dkkUser',
+            headers: { token: localStorage.getItem('token') },
             data: { fdkkUser: vm.info.fdkkUser },
             dataType: 'json',
             success: function (result) {