|
@@ -31,12 +31,19 @@
|
|
|
</template>
|
|
|
<script name="ApplyResult" setup>
|
|
|
import { useRoute, useRouter } from "vue-router";
|
|
|
+import { getStuInfo } from "@/api/user";
|
|
|
import bus from "@/utils/bus";
|
|
|
const route = useRoute();
|
|
|
const router = useRouter();
|
|
|
const continueApply = () => {
|
|
|
- router.back();
|
|
|
- bus.emit("continueApply");
|
|
|
+ getStuInfo().then((res) => {
|
|
|
+ if (res?.selfApplyEnable) {
|
|
|
+ router.back();
|
|
|
+ bus.emit("continueApply");
|
|
|
+ } else {
|
|
|
+ router.replace({ name: "Index" });
|
|
|
+ }
|
|
|
+ });
|
|
|
};
|
|
|
const seeOrders = () => {
|
|
|
router.push({ name: "Index", replace: true });
|