|
@@ -15,7 +15,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { queryProject } from "@/services/project";
|
|
|
+import { queryAuth } from "@/services/project";
|
|
|
import { mapState } from "vuex";
|
|
|
export default {
|
|
|
computed: {
|
|
@@ -30,18 +30,15 @@ export default {
|
|
|
methods: {
|
|
|
async getProject() {
|
|
|
let res = {};
|
|
|
- res = await queryProject();
|
|
|
+ res = await queryAuth();
|
|
|
this.projectList = res.data.list;
|
|
|
},
|
|
|
async onClickProject(project) {
|
|
|
await this.$store.commit("setCurrentProject", project);
|
|
|
uni.navigateTo({
|
|
|
- url: `./detail?id=${project.id}&auth=${this.canAuth()}`,
|
|
|
+ url: `./detail?id=${project.id}&auth=${true}`,
|
|
|
});
|
|
|
},
|
|
|
- canAuth() {
|
|
|
- return false;
|
|
|
- },
|
|
|
},
|
|
|
};
|
|
|
</script>
|