https://www.cnblogs.com/websmile/p/7873601.html
例如:
login(data).then(function(res) {
if (res.data.errmsg == “成功”) {
//console.log(that.
r
o
u
t
e
.
q
u
e
r
y
.
r
e
d
i
r
e
c
t
)
i
f
(
t
h
a
t
.
route.query.redirect) if (that.
route.query.redirect)if(that.route.query.redirect) {
//判断用户退出是从哪里退出的
that.KaTeX parse error: Expected '}', got 'EOF' at end of input: …h({ path: that.route.query.redirect });
} else {
that.KaTeX parse error: Expected 'EOF', got '}' at position 52: … }̲ } …message.error(res.data.errmsg);
}
});