|
@@ -55,14 +55,14 @@ export default {
|
|
computed: {},
|
|
computed: {},
|
|
methods: {
|
|
methods: {
|
|
init() {
|
|
init() {
|
|
- let from = new FormData();
|
|
|
|
- from.append("username", "admin");
|
|
|
|
- from.append("sign", sha256("adminabc123456").toLowerCase());
|
|
|
|
if (localStorage.guijiToken) {
|
|
if (localStorage.guijiToken) {
|
|
return guijiActivity().then(topic => {
|
|
return guijiActivity().then(topic => {
|
|
this.getTab(topic);
|
|
this.getTab(topic);
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+ let from = new FormData();
|
|
|
|
+ from.append("username", "admin");
|
|
|
|
+ from.append("sign", sha256("adminabc123456").toLowerCase());
|
|
guijiLogin(from).then(res => {
|
|
guijiLogin(from).then(res => {
|
|
localStorage.guijiToken = res.token || "";
|
|
localStorage.guijiToken = res.token || "";
|
|
guijiActivity().then(topic => {
|
|
guijiActivity().then(topic => {
|
|
@@ -131,7 +131,6 @@ export default {
|
|
this.selectA[this.select] = true;
|
|
this.selectA[this.select] = true;
|
|
},
|
|
},
|
|
selectTab(tab) {
|
|
selectTab(tab) {
|
|
- console.log(this.activitys[tab.index])
|
|
|
|
try {
|
|
try {
|
|
this.select = this.activitys[tab.index].componentReal;
|
|
this.select = this.activitys[tab.index].componentReal;
|
|
this.selectA[this.select] = true;
|
|
this.selectA[this.select] = true;
|