File upload front-end display problem (href dynamic pass value)

Note that my front end uses vue + iview

	   <FormItem label="场景还原地址" prop="scenerestoration">
		          <a :href="data定义的对象.属性">{{data定义的对象.属性}}</a>
		          <!-- <Input v-model="showEditForm.scenerestoration"  :clearable="isClearAble" :autofocus="true"/> -->
        </FormItem>

If you find that the requested address of href is not in the same folder, you can use:

	    <FormItem label="场景还原地址" prop="scenerestoration">
		          <a :href="../+'data定义的对象.属性' ">{{data定义的对象.属性}}</a>
		          <!-- <Input v-model="showEditForm.scenerestoration"  :clearable="isClearAble" :autofocus="true"/> -->
        </FormItem>

Return to the previous directory: Of course you can also ... / ... /: Return to the previous directory /: Return to the root directory to control according to your needs

For the specific code of uploading files, see my previous batch of blog posts uploading files

Published 34 original articles · won praise 0 · Views 3634

Guess you like

Origin blog.csdn.net/qq_43469899/article/details/98960958