Commit 7079ba13 authored by 和慭琛's avatar 和慭琛

问题解决

parent ed8eb0d2
...@@ -21,9 +21,6 @@ ...@@ -21,9 +21,6 @@
}, },
{ {
"path": "pages/take/detail", "path": "pages/take/detail",
"style": { "style": {
......
...@@ -161,6 +161,10 @@ ...@@ -161,6 +161,10 @@
this.getToken() this.getToken()
}, },
methods: {
async getToken () { async getToken () {
await uni.getStorage({ await uni.getStorage({
key: 'token', key: 'token',
...@@ -176,8 +180,6 @@ ...@@ -176,8 +180,6 @@
await this.getData() await this.getData()
}, },
methods: {
//获取数据 //获取数据
getData: function () { getData: function () {
......
...@@ -293,6 +293,10 @@ __webpack_require__.r(__webpack_exports__); ...@@ -293,6 +293,10 @@ __webpack_require__.r(__webpack_exports__);
this.getToken(); this.getToken();
}, },
methods: {
getToken: function getToken() {var _this = this;return _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee() {return _regenerator.default.wrap(function _callee$(_context) {while (1) {switch (_context.prev = _context.next) {case 0:_context.next = 2;return ( getToken: function getToken() {var _this = this;return _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee() {return _regenerator.default.wrap(function _callee$(_context) {while (1) {switch (_context.prev = _context.next) {case 0:_context.next = 2;return (
uni.getStorage({ uni.getStorage({
key: 'token', key: 'token',
...@@ -308,8 +312,6 @@ __webpack_require__.r(__webpack_exports__); ...@@ -308,8 +312,6 @@ __webpack_require__.r(__webpack_exports__);
_this.getData());case 4:case "end":return _context.stop();}}}, _callee);}))(); _this.getData());case 4:case "end":return _context.stop();}}}, _callee);}))();
}, },
methods: {
//获取数据 //获取数据
getData: function getData() { getData: function getData() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment