lsc 3 yıl önce
ebeveyn
işleme
fcb2296f10

+ 2 - 2
dist/index.html

@@ -1,4 +1,4 @@
-<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>cocoroboblockly</title><link href=/static/css/app.0c9a83be6aa527cce969f1dfc1246645.css rel=stylesheet></head><style>@charset "utf-8";
+<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>cocoroboblockly</title><link href=/static/css/app.361ae0b83ac72b7e7d19f7078d334fc9.css rel=stylesheet></head><style>@charset "utf-8";
 
   div::-webkit-scrollbar {
     /*滚动条整体样式*/
@@ -42,4 +42,4 @@
     height: 100%;
     width: 100%;
     background: #e6eaf0;
-  }</style><body><div id=app></div><script type=text/javascript src=/static/js/manifest.2ae2e69a05c33dfc65f8.js></script><script type=text/javascript src=/static/js/vendor.c45496ecc850f4852679.js></script><script type=text/javascript src=/static/js/app.86a79810b111c22276de.js></script></body></html>
+  }</style><body><div id=app></div><script type=text/javascript src=/static/js/manifest.2ae2e69a05c33dfc65f8.js></script><script type=text/javascript src=/static/js/vendor.c45496ecc850f4852679.js></script><script type=text/javascript src=/static/js/app.6010b441f9656447d66c.js></script></body></html>

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/static/css/app.0c9a83be6aa527cce969f1dfc1246645.css.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/static/css/app.361ae0b83ac72b7e7d19f7078d334fc9.css


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/static/css/app.361ae0b83ac72b7e7d19f7078d334fc9.css.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/static/js/app.6010b441f9656447d66c.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/static/js/app.6010b441f9656447d66c.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/static/js/app.86a79810b111c22276de.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/static/js/app.86a79810b111c22276de.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/static/js/manifest.2ae2e69a05c33dfc65f8.js.map


+ 161 - 160
src/App.vue

@@ -1,14 +1,14 @@
 <template>
-	<div id="app">
-		<div class="head">
-			<div class="logo">
-				<img
-					style="height: 40px; margin-top: 10px"
-					class="left nav-icon"
-					src="https://x.cocorobo.cn/icons/logo.png"
-					@click="goto()"
-				/>
-				<!-- <span
+  <div id="app">
+    <div class="head">
+      <div class="logo">
+        <img
+          style="height: 40px; margin-top: 10px"
+          class="left nav-icon"
+          src="https://x.cocorobo.cn/icons/logo.png"
+          @click="goto()"
+        />
+        <!-- <span
           style="
             font-size: 28px;
             font-family: 'GT Walsheim Pro Trial Bold';
@@ -16,162 +16,163 @@
             color: #fff;
           "
           >CocoBlockly</span
-        > -->
-			</div>
-			<div class="user_head" v-if="this.$store.state.userId">
-				<span class="user_name">{{ this.$store.state.userName }}</span>
-				<div>
-					<i></i>
-					<el-button type="text" style="color: white" @click="logout"
-						>退出</el-button
-					>
-				</div>
-			</div>
-		</div>
+        >-->
+      </div>
+      <div class="user_head" v-if="this.$store.state.userId">
+        <span class="user_name">{{ this.$store.state.userName }}</span>
+        <div>
+          <i></i>
+          <el-button type="text" style="color: white" @click="logout">退出</el-button>
+        </div>
+      </div>
+    </div>
 
-		<div style="background: #e5e5e5; height: calc(100% - 67.5px); width: 100%">
-			<!-- main 内容 -->
-			<keep-alive v-if="$route.meta.keepAlive">
-				<!-- 这里是会被缓存的视图组件 -->
-				<router-view v-if="$route.meta.keepAlive" />
-			</keep-alive>
-			<!-- 这里是不被缓存的视图组件 -->
-			<router-view v-if="!$route.meta.keepAlive" />
-		</div>
-	</div>
+    <div style="background: #e5e5e5; height: calc(100% - 67.5px); width: 100%">
+      <!-- main 内容 -->
+      <keep-alive v-if="$route.meta.keepAlive">
+        <!-- 这里是会被缓存的视图组件 -->
+        <router-view v-if="$route.meta.keepAlive" />
+      </keep-alive>
+      <!-- 这里是不被缓存的视图组件 -->
+      <router-view v-if="!$route.meta.keepAlive" />
+    </div>
+  </div>
 </template>
 
 <script>
-	export default {
-		name: "App",
-		data() {
-			return {
-				type: this.$route.query.type,
-			};
-  		},
-		created() {
-			//在页面加载时读取sessionStorage里的状态信息
-			if (sessionStorage.getItem("store")) {
-				this.$store.replaceState(
-					Object.assign(
-						{},
-						this.$store.state,
-						JSON.parse(sessionStorage.getItem("store"))
-					)
-				);
-			}
+export default {
+  name: "App",
+  data() {
+    return {
+      type: this.$route.query.type,
+    };
+  },
+  created() {
+    //在页面加载时读取sessionStorage里的状态信息
+    if (sessionStorage.getItem("store")) {
+      this.$store.replaceState(
+        Object.assign(
+          {},
+          this.$store.state,
+          JSON.parse(sessionStorage.getItem("store"))
+        )
+      );
+    }
 
-			//在页面刷新时将vuex里的信息保存到sessionStorage里
-			window.addEventListener("beforeunload", () => {
-				sessionStorage.setItem("store", JSON.stringify(this.$store.state));
-			});
-			this.login();
-		},
-		methods: {
-			goto() {
-				this.$router.push("/");
-			},
-			login() {
-				//debugger;
-				// console.log("1");
-				var _this = this;
-				_this.ajax
-					.get(`${_this.$store.state.server}getcookieuserid`)
-					.then((res) => {
-						var userid = res.data[0][0].userid;
-						// var userid = "4be5e344-ce1a-11e9-a839-028edca3b798";
-						_this.$store.commit("update", ["userId", userid]);
-						_this.ajax
-							.get(
-								`${_this.$store.state.edu}admin/userinfo/userinfoById/${userid}/`
-							)
-							.then((r) => {
-								let data = r.data[0][0];
-								console.log(data);
-								_this.$store.commit("update", [
-									"userName",
-									data.alias || data.username,
-								]);
-							});
-					})
-					.catch((err) => {
-						// _this.props.history.push("/login");
-						// window.alert(err.response.data)
-						var type = this.type
-						localStorage.setItem("type",type)
-						window.location.href = "https://edu.cocorobo.cn/course/login?type=1&UnityType="+type;
-					});
-			},
-			logout() {
-				this.ajax
-					.post(`${this.$store.state.server}logout`)
-					.then((res) => {
-						if (res.data) {
-							window.location.href =
-								"https://edu.cocorobo.cn/course/login?type=1";
-						}
-					})
-					.catch((err) => {});
-			},
-		},
-	};
+    //在页面刷新时将vuex里的信息保存到sessionStorage里
+    window.addEventListener("beforeunload", () => {
+      sessionStorage.setItem("store", JSON.stringify(this.$store.state));
+    });
+    this.login();
+  },
+  methods: {
+    goto() {
+      this.$router.push("/");
+    },
+    login() {
+      //debugger;
+      // console.log("1");
+      var _this = this;
+      _this.ajax
+        .get(`${_this.$store.state.server}getcookieuserid`)
+        .then((res) => {
+          var userid = res.data[0][0].userid;
+          // var userid = "4be5e344-ce1a-11e9-a839-028edca3b798";
+          _this.$store.commit("update", ["userId", userid]);
+          _this.ajax
+            .get(
+              `${_this.$store.state.edu}admin/userinfo/userinfoById/${userid}/`
+            )
+            .then((r) => {
+              let data = r.data[0][0];
+              console.log(data);
+              _this.$store.commit("update", [
+                "userName",
+                data.alias || data.username,
+              ]);
+            });
+        })
+        .catch((err) => {
+          // _this.props.history.push("/login");
+          // window.alert(err.response.data)
+          var type = this.type;
+          localStorage.setItem("type", type);
+          window.location.href =
+            "https://edu.cocorobo.cn/course/login?type=1&UnityType=" + type;
+        });
+    },
+    logout() {
+      this.ajax
+        .post(`${this.$store.state.server}logout`)
+        .then((res) => {
+          if (res.data) {
+            var type = this.type;
+            localStorage.setItem("type", type);
+            window.location.href =
+              "https://edu.cocorobo.cn/course/login?type=1&UnityType=" + type;
+          }
+        })
+        .catch((err) => {});
+    },
+  },
+};
 </script>
 
 <style>
-	* {
-		margin: 0;
-		padding: 0;
-	}
-	body {
-		font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
-			"Microsoft YaHei", "微软雅黑", Arial, sans-serif;
-	}
-	#app {
-		height: 100%;
-		width: 100%;
-		/* background: #e6eaf0; */
-		/* min-width: 1380px; */
-		/* background: #fff; */
-		background: #e5e5e5;
-		min-width: 1000px;
-	}
-	.head {
-		height: 67.5px;
-		width: 100%;
-		background-color: #2c4fcd;
-		display: flex;
-		align-items: center;
-		min-width: 1000px;
-	}
-	.logo {
-		margin-left: 20px;
-		cursor: pointer;
-	}
-	.user_head {
-		display: flex;
-		align-items: center;
-		margin-left: auto;
-		margin-right: 20px;
-		font-size: 18px;
-		font-weight: 600;
-	}
-	.user_head .user_name {
-		color: #fff;
-		margin-right: 10px;
-	}
-	.user_head div {
-		display: flex;
-		align-items: center;
-		cursor: pointer;
-	}
-	.user_head i {
-		background-image: url("./assets/exit.png");
-		width: 25px;
-		height: 25px;
-		background-size: 100% 100%;
-		margin-top: 1px;
-		line-height: 25px;
-		vertical-align: text-top;
-		background-repeat: no-repeat;
-	}
+* {
+  margin: 0;
+  padding: 0;
+}
+body {
+  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
+    "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
+}
+#app {
+  height: 100%;
+  width: 100%;
+  /* background: #e6eaf0; */
+  /* min-width: 1380px; */
+  /* background: #fff; */
+  background: #e5e5e5;
+  min-width: 1000px;
+}
+.head {
+  height: 67.5px;
+  width: 100%;
+  background-color: #2c4fcd;
+  display: flex;
+  align-items: center;
+  min-width: 1000px;
+}
+.logo {
+  margin-left: 20px;
+  cursor: pointer;
+}
+.user_head {
+  display: flex;
+  align-items: center;
+  margin-left: auto;
+  margin-right: 20px;
+  font-size: 18px;
+  font-weight: 600;
+}
+.user_head .user_name {
+  color: #fff;
+  margin-right: 10px;
+}
+.user_head div {
+  display: flex;
+  align-items: center;
+  cursor: pointer;
+}
+.user_head i {
+  background-image: url("./assets/exit.png");
+  width: 25px;
+  height: 25px;
+  background-size: 100% 100%;
+  margin-top: 1px;
+  line-height: 25px;
+  vertical-align: text-top;
+  background-repeat: no-repeat;
+}
 </style>

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor