|
@@ -99,7 +99,7 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import { request } from '@/utils/request'
|
|
|
-
|
|
|
+import { Message, MessageBox } from 'element-ui'
|
|
|
export default {
|
|
|
name: 'notice',
|
|
|
components: {},
|
|
@@ -174,14 +174,32 @@ shijiantime(times) {
|
|
|
this.noentry()
|
|
|
} else {
|
|
|
this.noentry()
|
|
|
- this.$message.error('请先去实名制')
|
|
|
+ //this.$message.error('请先去实名制')
|
|
|
// this.$router.replace(`/userLayout/real`)
|
|
|
}
|
|
|
}else{
|
|
|
this.$message.error('比赛还没开始')
|
|
|
}
|
|
|
} else {
|
|
|
- this.$message.error('请先登录')
|
|
|
+ MessageBox.confirm('你还未登录,请登录后再操作, 是否登录?', '提示', {
|
|
|
+ confirmButtonText: '登录',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ center: true,
|
|
|
+ closeOnClickModal: false,
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+
|
|
|
+ // next(`/login?redirect=${to.path}`) // 在没有访问权限的其他页面将重定向到登录页
|
|
|
+ this.$router.replace(`/indexLayout/home?type=reLogin`) // 在没有访问权限的其他页面将重定向到登录页
|
|
|
+
|
|
|
+
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ Message.info('已取消')
|
|
|
+ })
|
|
|
+ // this.$message.error('请先登录')
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
//判断是否参赛
|